<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://projects.c3o.com/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>Plugins</title><link>http://projects.c3o.com/files/3/plugins/default.aspx</link><description /><dc:language>en-US</dc:language><generator>CommunityServer 2.0 (Build: 60217.2664)</generator><item><title>Simple SQL Bulk Copy</title><link>http://projects.c3o.com/files/3/plugins/entry11.aspx</link><pubDate>Mon, 19 Nov 2007 02:19:08 GMT</pubDate><guid isPermaLink="false">7c5e48ed-0713-4540-a41b-85c44a7fd9ee:11</guid><dc:creator>fred.sobel</dc:creator><slash:comments>54</slash:comments><description>&lt;P&gt;Sept 10 2008: Just added the source to google code:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;svn checkout &lt;STRONG&gt;&lt;EM&gt;&lt;A target="_blank" href="http://sqlcopy.googlecode.com/svn/trunk/"&gt;http&lt;/EM&gt;&lt;/STRONG&gt;://sqlcopy.googlecode.com/svn/trunk/&lt;/A&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Spotted this&amp;nbsp;&lt;A href="http://www.designovermatter.com/blog/index.cfm/2008/5/18/Houston-we-have-a-problem-with-Data-ImportExport-in-SQL-Server-2005-DTS-Data"&gt;blog post &lt;/A&gt;on the SQL Server 2005 Import/Export issue with nice &lt;A href="http://www.designovermatter.com/blog/code/sqlserver2005/SQL-Server-2005-DTS.pdf"&gt;PDF Workaround document&lt;/A&gt;.&amp;nbsp; Checkout the PDF for a step by step description on how to export your schema and data.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;New Version: &lt;/STRONG&gt;May 03 2008 - Added edit form&amp;nbsp;for pre and post sql.&amp;nbsp; Changed default post sql to include "WITH CHECK" per Mat's comment below.&amp;nbsp; Use the &lt;STRONG&gt;SQL&lt;/STRONG&gt; button next to the Delete option to edit the defaul pre and post sql.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pre-SQL&lt;/P&gt;
&lt;P&gt;exec sp_msforeachtable 'ALTER TABLE ? NOCHECK CONSTRAINT all';&lt;BR&gt;exec sp_msforeachtable 'ALTER TABLE ? DISABLE TRIGGER all';&lt;/P&gt;
&lt;P&gt;Post-SQL&lt;/P&gt;
&lt;P&gt;exec sp_msforeachtable 'ALTER TABLE ? &lt;STRONG&gt;WITH CHECK&lt;/STRONG&gt; CHECK CONSTRAINT all';&lt;BR&gt;exec sp_msforeachtable 'ALTER TABLE ? ENABLE TRIGGER all';&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;New Version:&lt;/STRONG&gt; April 2 2008 -&amp;nbsp;Added options for Check Constraints, Fire Triggers, Table Lock (instead of row level) and Delete Rows:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="/newoptions.JPG" border=0&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Warning!&lt;/STRONG&gt; The &lt;STRONG&gt;Delete Rows&lt;/STRONG&gt; option will attempt to delete rows for the tables you seelct in the destination database.&amp;nbsp; As long as you don't have Check Constraints or Fire Triggers selected it will try to disable Constraints and Triggers before attempting to delete.&amp;nbsp; There is an annoying warning message in case you don't read this.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="/deletewarning.JPG" border=0&gt; &lt;/P&gt;
&lt;P&gt;Here is the complete delete SQL:&lt;/P&gt;
&lt;P&gt;-- Disable Constraints for all tables&lt;BR&gt;exec sp_msforeachtable 'ALTER TABLE ? NOCHECK CONSTRAINT all'&lt;BR&gt;exec sp_msforeachtable 'ALTER TABLE ? DISABLE TRIGGER all'&lt;BR&gt;&amp;nbsp;&lt;BR&gt;-- Delete From each selected&amp;nbsp;table before copying data:&lt;BR&gt;delete from&amp;nbsp;foo&lt;BR&gt;&amp;nbsp;&lt;BR&gt;-- Turn constraints and triggers back on&lt;BR&gt;exec sp_msforeachtable&amp;nbsp;'ALTER TABLE ? CHECK CONSTRAINT all'&lt;BR&gt;exec sp_msforeachtable&amp;nbsp;'ALTER TABLE ? ENABLE TRIGGER all'&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Update - Feb 8 2008 - &lt;/STRONG&gt;The more I used this utility the more I got tired of typing in connection strings as I switched between databases so I added a dropdown for source and destination.&amp;nbsp; It will remember them as they are added.&amp;nbsp; I ran into &lt;A href="/forums/thread/37.aspx"&gt;some problems &lt;/A&gt;with the initial update but they should be fixed now.&amp;nbsp; Let me know if you run into problems.&amp;nbsp; You can always go to Control Panel &amp;gt; Add or Remove Programs &amp;gt; Simple Sql Copy and "Restore the Application to it's previous state" to get back to the old version.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Added Timeout and Batchsize&lt;/STRONG&gt; 
&lt;LI&gt;&lt;STRONG&gt;Added&amp;nbsp;error chekcing..etc.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt; 
&lt;LI&gt;&lt;STRONG&gt;Converted to a Click Once Install to keep versions updated&lt;/STRONG&gt; 
&lt;LI&gt;&lt;STRONG&gt;Post your feedback &lt;/STRONG&gt;&lt;A href="/forums/8/ShowForum.aspx"&gt;&lt;STRONG&gt;here&lt;/STRONG&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;After spending a day fighting with identity columns and the SQL Server 2005 Import/Export Wizard I learned about SqlBulkCopy from &lt;A href="http://davidhayden.com/blog/dave/archive/2006/01/13/2692.aspx" target=_blank&gt;a post on David Hayden's blog &lt;/A&gt;and created this quick app to get around the problem.&lt;BR&gt;It will copy data between identical tables and keep identity and null columns intact.&amp;nbsp; Used in conjunction with the generate script wizard you can make a complete database copy as long as you have sql access. &lt;/P&gt;
&lt;P&gt;Here is the &lt;A href="http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=135905" target=_blank&gt;issue&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Some&amp;nbsp;posts about it:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/chrissk/default.aspx" target=_blank&gt;Tips for Troubleshooting SQL 2005 SSIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://rip747.wordpress.com/2007/10/01/sql-server-2005-import-export-reset-identity-keys-no-workaround-2005-sucks-period-the-end/" target=_blank&gt;SQL Server 2005: Import / Export reset identity keys… no workaround… 2005 sucks period, the end&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you have problems with the Click Once install you can pull the exe down from:&lt;/P&gt;
&lt;P&gt;&lt;A href="/install/sqlcopy/SimpleSqlCopy.exe"&gt;http://projects.c3o.com/install/sqlcopy/SimpleSqlCopy.exe&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can always send me email at &lt;A href="mailto:fcsobel@yahoo.com"&gt;fcsobel@yahoo.com&lt;/A&gt;&amp;nbsp;if you have any questions.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;amp;business=fred.sobel@gmail.com&amp;amp;item_name=SimpleSqlCopy&amp;amp;no_shipping=0&amp;amp;no_note=1&amp;amp;currency_code=USD&amp;amp;tax=0&amp;amp;lc=US&amp;amp;bn=PP-DonationsBF"&gt;&lt;IMG alt="If you feel like donating:)" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border=0&gt;&lt;/A&gt;&lt;/P&gt;</description><enclosure url="http://projects.c3o.com/install/sqlcopy/SimpleSqlCopy.application" length="5487" type="application/x-ms-application" /></item><item><title>Plugins for 0.2.2.0</title><link>http://projects.c3o.com/files/3/plugins/entry4.aspx</link><pubDate>Thu, 11 Jan 2007 03:38:25 GMT</pubDate><guid isPermaLink="false">7c5e48ed-0713-4540-a41b-85c44a7fd9ee:4</guid><dc:creator>fred.sobel</dc:creator><slash:comments>0</slash:comments><description>My Torrents, PodCasts, uTorrent and Azureus for Mediaportal 0.2.2.0</description><enclosure url="http://projects.c3o.com/MediaPortal/plugins.zip" length="188775" type="application/x-zip-compressed" /></item><item><title>Plugins for 0.2.0.0</title><link>http://projects.c3o.com/files/3/plugins/entry3.aspx</link><pubDate>Thu, 11 Jan 2007 03:37:13 GMT</pubDate><guid isPermaLink="false">7c5e48ed-0713-4540-a41b-85c44a7fd9ee:3</guid><dc:creator>fred.sobel</dc:creator><slash:comments>0</slash:comments><description>My PodCasts, My Torrents, My Azureus and My Utorrent plugins for Mediaportal</description><enclosure url="http://projects.c3o.com/files/3/download.aspx" length="229454" type="application/x-zip-compressed" /></item></channel></rss>