<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Visual Studio 2005</title><link>http://forums.asp.net/138.aspx</link><description>General discussions of Visual Studio 2005.  &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=162&amp;c=30" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Data transfer..... (walkthroughs ?)</title><link>http://forums.asp.net/thread/1683753.aspx</link><pubDate>Thu, 26 Apr 2007 15:47:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1683753</guid><dc:creator>paulizaz</dc:creator><author>paulizaz</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1683753.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=138&amp;PostID=1683753</wfw:commentRss><description>&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But is this suitable for a complete site migration? &lt;br /&gt; &lt;/p&gt;&lt;p&gt;From one SQL database to another where the fields may differ slightly.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Data transfer..... (walkthroughs ?)</title><link>http://forums.asp.net/thread/1663886.aspx</link><pubDate>Fri, 13 Apr 2007 02:29:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1663886</guid><dc:creator>Benson Yu - MSFT</dc:creator><author>Benson Yu - MSFT</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1663886.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=138&amp;PostID=1663886</wfw:commentRss><description>&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;Hi paulizaz,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;SQL Server provides the import/export tool to let us copy and transfer data easily. I recommend you to use it.&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;We can write our own class to do that, but I think it cannot as efficient and powerful as the tool SQL Server provided.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;In my opinion, firstly we shall get the table schema from the table in old database and create the same or similar table in new database. Secondly we read the data from old table to a in memory DataTable object. At last, insert all the rows from DataTable to the table in new database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;Here are some links helpful for this scenario:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;a href="http://support.microsoft.com/kb/310107"&gt;http://support.microsoft.com/kb/310107&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/fksx3b4f(VS.80).aspx"&gt;http://msdn2.microsoft.com/en-us/library/fksx3b4f(VS.80).aspx&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;About how to insert all the data from DataTable to database table, here is&amp;nbsp;a sample:&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:9pt;mso-hansi-font-family:'Times New Roman';mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="COLOR:blue;"&gt;foreach&lt;/span&gt; (&lt;span style="COLOR:#2b91af;"&gt;TableRow&lt;/span&gt; row &lt;span style="COLOR:blue;"&gt;in&lt;/span&gt; table.Rows)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:9pt;mso-hansi-font-family:'Times New Roman';mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:9pt;mso-hansi-font-family:'Times New Roman';mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;command.CommandText = &lt;span style="COLOR:#2b91af;"&gt;String&lt;/span&gt;.Format(&lt;span style="COLOR:#a31515;"&gt;"INSERT INTO table VALUES ( {0},{1})"&lt;/span&gt;, row[0], row[1]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:9pt;mso-hansi-font-family:'Times New Roman';mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;connection.Open();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:9pt;mso-hansi-font-family:'Times New Roman';mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;command.ExecuteNonQuery();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;span style="FONT-SIZE:9pt;mso-hansi-font-family:'Times New Roman';mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;connection.Close();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:9pt;mso-hansi-font-family:'Times New Roman';mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Data transfer..... (walkthroughs ?)</title><link>http://forums.asp.net/thread/1660619.aspx</link><pubDate>Wed, 11 Apr 2007 10:24:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1660619</guid><dc:creator>paulizaz</dc:creator><author>paulizaz</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1660619.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=138&amp;PostID=1660619</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I am asked to write a C# class that maps data from an old database to another database on a new server.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;
Is there a walkthrough to help me?, does anyone know of any other resources?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;Any help appreciated..........</description></item></channel></rss>