<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.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>BenL's WebLog - All Comments</title><link>http://weblogs.asp.net/benl/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>re:Maintaining SQL Server Databases</title><link>http://weblogs.asp.net/benl/archive/2004/01/14/58808.aspx#397977</link><pubDate>Sun, 10 Apr 2005 09:36:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:397977</guid><dc:creator>TrackBack</dc:creator><description>^_^,Pretty Good!&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=397977" width="1" height="1"&gt;</description></item><item><title>re: Maintaining SQL Server Databases</title><link>http://weblogs.asp.net/benl/archive/2004/01/14/58808.aspx#59018</link><pubDate>Thu, 15 Jan 2004 16:50:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:59018</guid><dc:creator>Ben Lower</dc:creator><description>Justin:&lt;br&gt;  I am aware of the scripting feature.  It is very nice.  However, I've found that by starting with the script from the very beginning (not creating tables via Ent. Mgr.), I can really save time by copying the DDL code into my SPROC scripts.&lt;br&gt;&lt;br&gt;Jerry:&lt;br&gt;  Your comments reminded me of a nice MSDN article from 4/2003 that deals with automated creation of SQL code &amp;amp; using prefixes.  (&lt;a target="_new" href="http://msdn.microsoft.com/msdnmag/issues/03/04/storedprocedures/default.aspx"&gt;http://msdn.microsoft.com/msdnmag/issues/03/04/storedprocedures/default.aspx&lt;/a&gt;)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=59018" width="1" height="1"&gt;</description></item><item><title>re: Maintaining SQL Server Databases</title><link>http://weblogs.asp.net/benl/archive/2004/01/14/58808.aspx#58858</link><pubDate>Thu, 15 Jan 2004 07:27:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:58858</guid><dc:creator>Jerry Pisk</dc:creator><description>I use a similar approach as well, except we use prefixes instead of fodlers so you can tell what objects you're working with (so our user stored procedure are all named up_module_subject_action). And we keep primary keys, indexes, foreign keys and constraints together with table scripts as the tables should never be created without those (it's just too error prone if you have to remember to manually create a primary key after you create a table).&lt;br&gt;&lt;br&gt;The side effect of using script is that it keeps less experienced developers (read people who code using their mouse) out of the database ;)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=58858" width="1" height="1"&gt;</description></item><item><title>re: Maintaining SQL Server Databases</title><link>http://weblogs.asp.net/benl/archive/2004/01/14/58808.aspx#58828</link><pubDate>Thu, 15 Jan 2004 04:35:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:58828</guid><dc:creator>John Bates</dc:creator><description>Very good idea; I use a similar method. The best benefit for me is that each SP, etc. is version controlled and can have a SCC-generated comment with the version of that script. Really handy when debugging a problem at a customer site - just check version numbers to see if they're running the latest scripts.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=58828" width="1" height="1"&gt;</description></item><item><title>re: Maintaining SQL Server Databases</title><link>http://weblogs.asp.net/benl/archive/2004/01/14/58808.aspx#58815</link><pubDate>Thu, 15 Jan 2004 03:23:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:58815</guid><dc:creator>Justin</dc:creator><description>In Query Analyzer, if you have the Object Browser open, you can right click and have scripts generated for you too. Sounds very similiar but the QA method saves you the time of having to script the DDL yourself.&lt;br&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=58815" width="1" height="1"&gt;</description></item></channel></rss>