<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.mssqltips.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Chad Boyd - All Comments</title><link>http://blogs.mssqltips.com/blogs/chadboyd/default.aspx</link><description>MSSQLTips - SQL Server Blog</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>re: Fragmentation Station - Stop #1 - Storage basics and Access Methods</title><link>http://blogs.mssqltips.com/blogs/chadboyd/archive/2007/11/12/fragmentation-station-stop-1-storage-basics-and-access-methods.aspx#4185</link><pubDate>Tue, 13 Oct 2009 06:47:36 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:4185</guid><dc:creator>Nielsjoergen Hvidberg</dc:creator><description>&lt;p&gt;Hi Chad, what happened to the images in your great article :-)&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=4185" width="1" height="1"&gt;</description></item><item><title>Setting up your server | Becomming a SQL Master</title><link>http://blogs.mssqltips.com/blogs/chadboyd/archive/2008/06/29/installing-clustered-sql-servers-outline-checklists-document-sheets.aspx#4073</link><pubDate>Tue, 22 Sep 2009 10:02:53 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:4073</guid><dc:creator>Setting up your server | Becomming a SQL Master</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Setting up your server | Becomming a SQL Master&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=4073" width="1" height="1"&gt;</description></item><item><title>re: SSD and SQL - SQLIO performance</title><link>http://blogs.mssqltips.com/blogs/chadboyd/archive/2008/03/16/ssd-and-sql-sqlio-performance.aspx#4058</link><pubDate>Fri, 18 Sep 2009 14:17:05 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:4058</guid><dc:creator>rowlandg</dc:creator><description>&lt;p&gt;This is a great little article using the basic tests to show the differences between traditional storage and SSDs. &lt;/p&gt;
&lt;p&gt;Thank you for this article -- well done!&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=4058" width="1" height="1"&gt;</description></item><item><title>re: SSD and SQL - Fragmentation Impact</title><link>http://blogs.mssqltips.com/blogs/chadboyd/archive/2008/04/07/ssd-and-sql-fragmentation-impact.aspx#4057</link><pubDate>Fri, 18 Sep 2009 14:15:15 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:4057</guid><dc:creator>rowlandg</dc:creator><description>&lt;p&gt;Great job exploring this issue Chad! I have wondered about the SSD performance particularly in the SAN environment. You&amp;#39;re the first person I&amp;#39;ve seen that used the empirical approach to finding the truth. &lt;/p&gt;
&lt;p&gt;Like everyone else, I would have bet on the SSDs in all situations. Apparently this is not the case!&lt;/p&gt;
&lt;p&gt;Thanks for a great article!&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=4057" width="1" height="1"&gt;</description></item><item><title>Katmai (Sql 2008) &amp;#8211; MERGE &amp;#8211; More than UPSERT (more advanced uses) &amp;#8211; Chad Boyd | Rickey Whitworths Blog</title><link>http://blogs.mssqltips.com/blogs/chadboyd/archive/2007/11/01/katmai-sql-2008-merge-more-than-upsert-more-advanced-uses.aspx#4041</link><pubDate>Mon, 14 Sep 2009 10:48:18 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:4041</guid><dc:creator>Katmai (Sql 2008) – MERGE – More than UPSERT (more advanced uses) – Chad Boyd | Rickey Whitworths Blog</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Katmai (Sql 2008) &amp;amp;#8211; MERGE &amp;amp;#8211; More than UPSERT (more advanced uses) &amp;amp;#8211; Chad Boyd | Rickey Whitworths Blog&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=4041" width="1" height="1"&gt;</description></item><item><title>Nullability settings with select…into and variables</title><link>http://blogs.mssqltips.com/blogs/chadboyd/archive/2008/05/20/katmai-sql-2008-transaction-logging-enhancements.aspx#4025</link><pubDate>Thu, 10 Sep 2009 19:41:08 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:4025</guid><dc:creator>Chad Boyd</dc:creator><description>&lt;p&gt;Traditionally there has been a single option for pulling data from one result set into a new table using&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=4025" width="1" height="1"&gt;</description></item><item><title>re: Fragmentation Station - Stop #4 - How to avoid it</title><link>http://blogs.mssqltips.com/blogs/chadboyd/archive/2008/02/13/fragmentation-station-stop-4-how-to-avoid-it.aspx#3644</link><pubDate>Fri, 26 Jun 2009 09:30:32 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:3644</guid><dc:creator>rowlandg</dc:creator><description>&lt;p&gt;Concise and well-reasoned. Well done Chad!&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=3644" width="1" height="1"&gt;</description></item><item><title>re: Katmai (Sql 2008) - The List of New Features</title><link>http://blogs.mssqltips.com/blogs/chadboyd/archive/2007/10/15/katmai-sql-2008-the-list-of-new-features.aspx#3549</link><pubDate>Sun, 14 Jun 2009 10:02:55 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:3549</guid><dc:creator>salvationishere</dc:creator><description>&lt;p&gt;Hi Chad,&lt;/p&gt;
&lt;p&gt;I am trying to run a SQL stored proc from Visual Studio 2008 which takes a table-valued UDT parameter as an input. &amp;nbsp;I added this parameter in Visual Studio 2008 but when I run this program it gets an &amp;quot;ArgumentException - Specified type isn't registered on target server.&amp;quot;&lt;/p&gt;
&lt;p&gt;So I googled this problem and think I need to create a new class in Visual Studio 2008 matching the properties of this table type from SQL Server 2008. &amp;nbsp;But I can't find any examples on the internet involving *table* UDT's. &amp;nbsp;And I tried all of the scalar UDT examples, but I wasn't sure how to modify these to make it table-based. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also read I may need to create an assembly, although I don't know if this is required only for importing a type into SQL Server 2008 or if it can also be used to import a type into Visual Studio. &amp;nbsp;BTW, I do not see any types listed from the Server Explorer in VS 2008, although I do see the database and its SP's. &amp;nbsp;I tried refreshing the database, but the types were still not showing.&lt;/p&gt;
&lt;p&gt;What I need to do is simple. &amp;nbsp;I have a table UDT like so:&lt;/p&gt;
&lt;p&gt;CREATE TYPE [dbo].[parseInputFile] AS TABLE(&lt;/p&gt;
&lt;p&gt;[NumCols] [int] IDENTITY(1,1) NOT NULL,&lt;/p&gt;
&lt;p&gt;[strRow] [varchar](500) NOT NULL,&lt;/p&gt;
&lt;p&gt;PRIMARY KEY CLUSTERED &lt;/p&gt;
&lt;p&gt;And the code snippet from my C# code is:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static int AppendData(string[] myStringArray)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlConnection conn = new SqlConnection(connString);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlCommand cmd = conn.CreateCommand();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd.CommandText = &amp;quot;dbo.uspAppendTableFromInput&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd.CommandType = CommandType.StoredProcedure;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd.Connection = conn;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SqlParameter param = cmd.Parameters.Add(&amp;quot;@InputFileParam&amp;quot;, SqlDbType.Udt);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;param.UdtTypeName = &amp;quot;AdventureWorks.dbo.parseInputFile&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;param.Value = myStringArray;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;conn.Open();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RowsAffected = cmd.ExecuteNonQuery();&lt;/p&gt;
&lt;p&gt;RowsAffected show zero rows affected after running this. &amp;nbsp;What am I missing? &amp;nbsp;Can u point me to a website demonstrating a simple example of this. &amp;nbsp;Or else give me a tip? &amp;nbsp;I have also tried 'param.UdtTypeName=&amp;quot;parseInputFile&amp;quot;;' for the above snippet, but this returned the same error. &amp;nbsp;BTW, &amp;quot;myStringArray&amp;quot; is essentially a table. &amp;nbsp;It is a series of strings. &amp;nbsp;e.g. myStringArray[0] = &amp;quot;Hello|Bob|How|Do&amp;quot;, myStringArray[1] = &amp;quot;I|Am|Fine|And&amp;quot;, etc.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=3549" width="1" height="1"&gt;</description></item><item><title>Transactional Replication Conversations | Coded Style</title><link>http://blogs.mssqltips.com/blogs/chadboyd/archive/2007/10/24/monitoring-replication-latency-automatically-using-tracer-tokens-sp-replchecklatency-allpubs.aspx#3482</link><pubDate>Sat, 30 May 2009 14:23:43 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:3482</guid><dc:creator>Transactional Replication Conversations | Coded Style</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Transactional Replication Conversations | Coded Style&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=3482" width="1" height="1"&gt;</description></item><item><title>Transactional Replication Conversations | Coded Style</title><link>http://blogs.mssqltips.com/blogs/chadboyd/archive/2007/10/24/monitoring-replication-latency-automatically-using-tracer-tokens-sp-replchecklatency-allpubs.aspx#3481</link><pubDate>Sat, 30 May 2009 14:23:02 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:3481</guid><dc:creator>Transactional Replication Conversations | Coded Style</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Transactional Replication Conversations | Coded Style&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=3481" width="1" height="1"&gt;</description></item><item><title>Transactional Replication Conversations | Coded Style</title><link>http://blogs.mssqltips.com/blogs/chadboyd/archive/2007/10/24/monitoring-replication-latency-automatically-using-tracer-tokens-sp-replchecklatency-allpubs.aspx#3480</link><pubDate>Sat, 30 May 2009 14:22:21 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:3480</guid><dc:creator>Transactional Replication Conversations | Coded Style</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Transactional Replication Conversations | Coded Style&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=3480" width="1" height="1"&gt;</description></item><item><title>Transactional Replication Conversations</title><link>http://blogs.mssqltips.com/blogs/chadboyd/archive/2007/10/24/monitoring-replication-latency-automatically-using-tracer-tokens-sp-replchecklatency-allpubs.aspx#3437</link><pubDate>Mon, 25 May 2009 14:17:23 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:3437</guid><dc:creator>Troubleshooting Microsoft SQL Server</dc:creator><description>&lt;p&gt;Transactional Replication Conversations When troubleshooting Transactional Replication performance break&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=3437" width="1" height="1"&gt;</description></item><item><title>Undelete files pictures partitions</title><link>http://blogs.mssqltips.com/blogs/chadboyd/pages/checklist-1-pre-cluster-installation.aspx#3356</link><pubDate>Mon, 11 May 2009 20:27:17 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:3356</guid><dc:creator>Undelete files pictures partitions</dc:creator><description>&lt;p&gt;File recovery focuses on getting any deleted lost or damaged files and partitions back in working order. You can do this in most cases with file recovery software but if that doesn't work data recovery companies can do it.&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=3356" width="1" height="1"&gt;</description></item><item><title>Websites tagged "vba" on Postsaver</title><link>http://blogs.mssqltips.com/blogs/chadboyd/archive/2008/10/14/invoke-nz-powershell-script-similar-to-nz-vba-function.aspx#3168</link><pubDate>Sat, 11 Apr 2009 02:17:10 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:3168</guid><dc:creator>Websites tagged "vba" on Postsaver</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Websites tagged &amp;quot;vba&amp;quot; on Postsaver&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=3168" width="1" height="1"&gt;</description></item><item><title>Data recovery service experts</title><link>http://blogs.mssqltips.com/blogs/chadboyd/archive/2008/10/14/invoke-nz-powershell-script-similar-to-nz-vba-function.aspx#3150</link><pubDate>Wed, 08 Apr 2009 20:06:50 GMT</pubDate><guid isPermaLink="false">ef11a07c-6ae8-4192-a8c7-2f25c1b79fe4:3150</guid><dc:creator>Data recovery service experts</dc:creator><description>&lt;p&gt;Recovery starts with knowing which solution you need to reclaim the lost data. File recovery is the most common one but advanced users often rely a a partition product if the circumstance allows it. Service is for a failing hard drive.&lt;/p&gt;
&lt;img src="http://blogs.mssqltips.com/aggbug.aspx?PostID=3150" width="1" height="1"&gt;</description></item></channel></rss>