<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>ScriptDB</title><link>http://www.codeplex.com/ScriptDB/Project/ProjectRss.aspx</link><description>ScriptDb is a simple console app written in C&amp;#35; that uses SQL Management Objects &amp;#40;SMO&amp;#41; to script all the objects in a database. It will work against any SQL Server 2000 or 2005 database. It creates ...</description><item><title>New Post: -p option working?</title><link>http://www.codeplex.com/ScriptDB/Thread/View.aspx?ThreadId=34613</link><description>&lt;div style="line-height: normal;"&gt;I've just been trying to use this to get scripts for my database that include 'description' extended properties.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The commandline I've got is&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-weight:bold"&gt;scriptdb -con:server=127.0.0.1\sqlexpress;database=project1;trusted_connection=yes -outdir:e:\project1\dbscripts\ -p -v -ScriptAsCreate&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-weight:bold"&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;and everything works as intended, except that I don't get extended properties output for any of my tables.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Am I doing something wrong, perhaps?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;This is the current ScriptDB exe (downloaded today!) running against SQL Express 2005 v9.0.3042, Windows XP Pro SP 3. &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Really hope I can get this working as this will be an incredibly useful tool.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Many thanks!&lt;/div&gt;&lt;div&gt;Rob&lt;/div&gt;&lt;/div&gt;</description><author>Robsoft</author><pubDate>Sat, 30 Aug 2008 16:30:15 GMT</pubDate><guid isPermaLink="false">New Post: -p option working? 20080830043015P</guid></item><item><title>Commented Issue: invalid path</title><link>http://www.codeplex.com/ScriptDB/WorkItem/View.aspx?WorkItemId=10418</link><description>The working directory does not exist when bcp.exe is running for the first table. Main&amp;#40;&amp;#41; is catches an invalid path exception and ScriptDb.exe fails to complete.&lt;br /&gt;Comments: ** Comment from web user: Robsoft ** &lt;p&gt;Is there a work-around for this at all&amp;#63; Thanks&amp;#33;&lt;/p&gt;</description><author>Robsoft</author><pubDate>Sat, 30 Aug 2008 16:24:18 GMT</pubDate><guid isPermaLink="false">Commented Issue: invalid path 20080830042418P</guid></item><item><title>New Post: Small bug</title><link>http://www.codeplex.com/ScriptDB/Thread/View.aspx?ThreadId=34220</link><description>&lt;div style="line-height: normal;"&gt;In DatabaseScripter.cs&lt;br&gt;
&lt;br&gt;
In &lt;span style="font-size:13px"&gt;&amp;quot;Foreign Keys&amp;quot;&lt;/span&gt;&amp;nbsp;region, ln 270&lt;br&gt;
&lt;br&gt;
&lt;span style="font-size:13px"&gt;
&lt;p&gt;WriteScript(smo.Script(), sw);&lt;br&gt;
&lt;br&gt;
replace with&lt;br&gt;
&lt;br&gt;
&lt;span style="font-size:13px"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;WriteScript(smo.Script(so), sw);&lt;br&gt;
&lt;br&gt;
'Cause ScriptingOptions are never used&lt;/p&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;/span&gt;
&lt;/div&gt;</description><author>zuby</author><pubDate>Mon, 25 Aug 2008 14:58:09 GMT</pubDate><guid isPermaLink="false">New Post: Small bug 20080825025809P</guid></item><item><title>New Post: Sql server 2008</title><link>http://www.codeplex.com/ScriptDB/Thread/View.aspx?ThreadId=33876</link><description>&lt;div style="line-height: normal;"&gt;I managed to compile it myself with the references for SMO version 10.0.0.0&lt;br&gt;
&lt;br&gt;
The sql-files changed, but for the better. I also had to make a small code change for it to stop exporting system assemblies.&lt;br&gt;
&lt;/div&gt;</description><author>Bard</author><pubDate>Thu, 21 Aug 2008 10:03:08 GMT</pubDate><guid isPermaLink="false">New Post: Sql server 2008 20080821100308A</guid></item><item><title>New Post: Sql server 2008</title><link>http://www.codeplex.com/ScriptDB/Thread/View.aspx?ThreadId=33876</link><description>&lt;div style="line-height: normal;"&gt;Has anyone tried this on slq server 2008? It fails here with a complain about an unsupported database version. &lt;br&gt;
&lt;/div&gt;</description><author>Bard</author><pubDate>Wed, 20 Aug 2008 08:10:10 GMT</pubDate><guid isPermaLink="false">New Post: Sql server 2008 20080820081010A</guid></item><item><title>Commented Issue: Stripped off schemas</title><link>http://www.codeplex.com/ScriptDB/WorkItem/View.aspx?WorkItemId=10737</link><description>While it does script the schemas - it needs to create a folder or leave the schema name in front of the table filename.&lt;br /&gt;Example&amp;#58;&lt;br /&gt;&lt;br /&gt;Schema1.Table1&lt;br /&gt;Schema2.Table1&lt;br /&gt;&lt;br /&gt;These are 2 different tables, the schemas DO get scripted - but the Table1 of Schema2 is the last one to be scripted and it overwrites the existing script for Table1 of schema1.&lt;br /&gt;&lt;br /&gt;TIA&lt;br /&gt;cmatech&lt;br /&gt;Comments: ** Comment from web user: cmatech ** &lt;p&gt;                        string FileName &amp;#61; Path.Combine&amp;#40;tables, FixUpFileName&amp;#40;table.Schema &amp;#43; &amp;#34;.&amp;#34; &amp;#43; table.Name&amp;#41; &amp;#43; &amp;#34;.sql&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;                        &amp;#35;region Table Definition&lt;br /&gt;                        using &amp;#40;StreamWriter sw &amp;#61; GetStreamWriter&amp;#40;FileName, false&amp;#41;&amp;#41;&lt;br /&gt;                        &amp;#123;&lt;br /&gt;                            if &amp;#40;verbose&amp;#41;&lt;br /&gt;                                Console.WriteLine&amp;#40;&amp;#34;Scripting &amp;#123;0&amp;#125;&amp;#34;, table.Schema &amp;#43; &amp;#34;.&amp;#34; &amp;#43; table.Name&amp;#41;&amp;#59;&lt;br /&gt;...&lt;br /&gt;...etc&lt;/p&gt;</description><author>cmatech</author><pubDate>Wed, 23 Jul 2008 04:29:41 GMT</pubDate><guid isPermaLink="false">Commented Issue: Stripped off schemas 20080723042941A</guid></item><item><title>Created Issue: Stripped off schemas</title><link>http://www.codeplex.com/ScriptDB/WorkItem/View.aspx?WorkItemId=10737</link><description>While it does script the schemas - it needs to create a folder or leave the schema name in front of the table filename.&lt;br /&gt;Example&amp;#58;&lt;br /&gt;&lt;br /&gt;Schema1.Table1&lt;br /&gt;Schema2.Table1&lt;br /&gt;&lt;br /&gt;These are 2 different tables, the schemas DO get scripted - but the Table1 of Schema2 is the last one to be scripted and it overwrites the existing script for Table1 of schema1.&lt;br /&gt;&lt;br /&gt;TIA&lt;br /&gt;cmatech&lt;br /&gt;</description><author>cmatech</author><pubDate>Wed, 23 Jul 2008 03:59:36 GMT</pubDate><guid isPermaLink="false">Created Issue: Stripped off schemas 20080723035936A</guid></item><item><title>Created Issue: invalid path</title><link>http://www.codeplex.com/ScriptDB/WorkItem/View.aspx?WorkItemId=10418</link><description>The working directory does not exist when bcp.exe is running for the first table. Main&amp;#40;&amp;#41; is catches an invalid path exception and ScriptDb.exe fails to complete.&lt;br /&gt;</description><author>Bard</author><pubDate>Thu, 03 Jul 2008 08:22:14 GMT</pubDate><guid isPermaLink="false">Created Issue: invalid path 20080703082214A</guid></item><item><title>UPDATED RELEASE: ScriptDB 1.2 (Mar 10, 2008)</title><link>http://www.codeplex.com/ScriptDB/Release/ProjectReleases.aspx?ReleaseId=11571</link><description>added -p switch.  if you pass it, extended properties for each object will be scripted.  </description><author></author><pubDate>Tue, 11 Mar 2008 06:33:22 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: ScriptDB 1.2 (Mar 10, 2008) 20080311063322A</guid></item><item><title>Patch Applied</title><link>http://www.codeplex.com/ScriptDB/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='/UserAccount/UserProfile.aspx?UserName=jezemine'&gt;jezemine&lt;/a&gt; has applied patch #225.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Comment:&lt;/b&gt;&lt;br /&gt;fixed this while adding code for -p switch &amp;#40;controls scripting of extended properties&amp;#41;&lt;/p&gt;</description><author>jezemine</author><pubDate>Tue, 11 Mar 2008 06:22:44 GMT</pubDate><guid isPermaLink="false">Patch Applied 20080311062244A</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/ScriptDB/SourceControl/ListDownloadableCommits.aspx</link><description>adding -p command line switch.  if you pass -p, then extended properties for each object will be included with the object&amp;#39;s DDL in the same file as the DDL.</description><author>jezemine</author><pubDate>Tue, 11 Mar 2008 06:21:05 GMT</pubDate><guid isPermaLink="false">Source code checked in 20080311062105A</guid></item><item><title>NEW POST: Thanks</title><link>http://www.codeplex.com/ScriptDB/Thread/View.aspx?ThreadId=15831</link><description>&lt;div class="wikidoc"&gt;
Just want to thank you VERY much for this.&lt;br /&gt;
&lt;/div&gt;</description><author>deusBlue</author><pubDate>Mon, 01 Oct 2007 08:34:03 GMT</pubDate><guid isPermaLink="false">NEW POST: Thanks 20071001083403A</guid></item><item><title>NEW POST: error when we use not trusted connection to SQL server</title><link>http://www.codeplex.com/ScriptDB/Thread/View.aspx?ThreadId=14714</link><description>&lt;div class="wikidoc"&gt;
Hello,&lt;br /&gt; &lt;br /&gt;It's very helpful tool for me. Thanks.&lt;br /&gt;However when we use option &amp;quot;-d&amp;quot; and we don't  have trusted connection to SQL server we get following error:&lt;br /&gt;...&lt;br /&gt;bcp.exe &amp;quot;db.dbo.TableName&amp;quot; out TableName.txt -c -T -SServerName&lt;br /&gt;Exception caught in Main()&lt;br /&gt;---------------------------------------&lt;br /&gt;The directory name is invalid&lt;br /&gt; &lt;br /&gt;System.ComponentModel.Win32Exception&lt;br /&gt; &lt;br /&gt;   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)&lt;br /&gt;   at System.Diagnostics.Process.Start()&lt;br /&gt;   at Elsasoft.ScriptDb.DatabaseScripter.ScriptTables(Boolean verbose, Database db, ScriptingOptions so, String outputDirectory, Boolean scriptData)&lt;br /&gt;   at Elsasoft.ScriptDb.DatabaseScripter.GenerateScript(String connStr, String outputDirectory, Boolean scriptData, Boolean verbose)&lt;br /&gt;   at Elsasoft.ScriptDb.Program.Main(String[] args)&lt;br /&gt;---------------------------------------&lt;br /&gt; &lt;br /&gt;I find your description about quick solution for that - it means that you use bcp tool. I change a little your program for my use and I only inform you and other people.&lt;br /&gt;
&lt;/div&gt;</description><author>xgreg</author><pubDate>Wed, 05 Sep 2007 11:20:19 GMT</pubDate><guid isPermaLink="false">NEW POST: error when we use not trusted connection to SQL server 20070905112019A</guid></item><item><title>CREATED ISSUE: Dependencies</title><link>http://www.codeplex.com/ScriptDB/WorkItem/View.aspx?WorkItemId=5167</link><description>Great tool.  I want to use it for database versioning.  I tried the rebuild db bat script but it fails because of dependant objects not being created ahead of time.&lt;br /&gt;&lt;br /&gt;Do you have any suggestions&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Mark&lt;br/&gt;</description><author>mgantlett</author><pubDate>Mon, 20 Aug 2007 20:16:24 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Dependencies 20070820081624P</guid></item><item><title>Patch Uploaded</title><link>http://www.codeplex.com/ScriptDB/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='/UserAccount/UserProfile.aspx?UserName=neilrickards'&gt;neilrickards&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br&gt;Corrected spelling of comma in usage screen&lt;/p&gt;</description><author>neilrickards</author><pubDate>Fri, 17 Aug 2007 09:30:04 GMT</pubDate><guid isPermaLink="false">Patch Uploaded 20070817093004A</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/ScriptDB/SourceControl/ListDownloadableCommits.aspx</link><description>adding a .bat file to the source distribution to create a fresh db created from the scripts that ScriptDB.exe generates.</description><author>jezemine</author><pubDate>Sat, 28 Jul 2007 03:38:44 GMT</pubDate><guid isPermaLink="false">Source code checked in 20070728033844A</guid></item><item><title>NEW POST: Security error</title><link>http://www.codeplex.com/ScriptDB/Thread/View.aspx?ThreadId=12035</link><description>&lt;div class="wikidoc"&gt;
Are you running it from the network?&lt;br /&gt;
&lt;/div&gt;</description><author>tfanshteyn</author><pubDate>Wed, 18 Jul 2007 15:41:00 GMT</pubDate><guid isPermaLink="false">NEW POST: Security error 20070718034100P</guid></item><item><title>NEW POST: Security error</title><link>http://www.codeplex.com/ScriptDB/Thread/View.aspx?ThreadId=12035</link><description>&lt;div class="wikidoc"&gt;
Hi,&lt;br /&gt; &lt;br /&gt;This is exactly the sort of tool I'm after. However, I get the following error when I try to run it:&lt;br /&gt; &lt;br /&gt;Request for the permission of type 'System.Security.Permissions.FileIOPermission&lt;br /&gt;, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxxxxx' f&lt;br /&gt;ailed.&lt;br /&gt; &lt;br /&gt;Can anyone help?&lt;br /&gt;
&lt;/div&gt;</description><author>pjtaylor</author><pubDate>Sat, 30 Jun 2007 10:42:10 GMT</pubDate><guid isPermaLink="false">NEW POST: Security error 20070630104210A</guid></item><item><title>Patch Uploaded</title><link>http://www.codeplex.com/ScriptDB/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='/UserAccount/UserProfile.aspx?UserName=paulrbell'&gt;paulrbell&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br&gt;Fixed a path error when using TableOneFile option.  Added the option SQL2000 to output for older servers.  When using TableOneFile option the Foreign Keys are placed at the end of the table scripts.  When using the CreateOnly option, it applies to the SPs as well.  The goal of these changes were to script a 2005 database into one file and generate that database on a SQL 2000 server.  All changes were noted with &amp;#47;&amp;#47;June 21, 2007 and some description of the change.  &lt;/p&gt;</description><author>paulrbell</author><pubDate>Fri, 22 Jun 2007 11:58:24 GMT</pubDate><guid isPermaLink="false">Patch Uploaded 20070622115824A</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/ScriptDB/SourceControl/ListDownloadableCommits.aspx</link><description>Option to include database context in the scripts&amp;#13;&amp;#10;Corrected extract for SQL 2000 SPs</description><author>tfanshteyn</author><pubDate>Fri, 08 Jun 2007 18:29:46 GMT</pubDate><guid isPermaLink="false">Source code checked in 20070608062946P</guid></item></channel></rss>