<?xml version="1.0" ?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>SQL Slayer - Group: Administration</title>
	<link>http://www.sqlslayer.com/wp/forum?group=1</link>
	<description><![CDATA[Making SQL do what we want it to do.]]></description>
	<generator>Simple:Press Forum Version 4.0.4</generator>
	<atom:link href="http://www.sqlslayer.com/wp/forum?group=1&#38;xfeed=group" rel="self" type="application/rss+xml" />
<item>
	<title>mlakarj on Know of any SQL Unit Test technologies?</title>
	<link>http://www.sqlslayer.com/wp/forum/general-1/know-of-any-sql-unit-test-technologies/#p10</link>
	<category>General</category>
	<guid isPermaLink="true">http://www.sqlslayer.com/wp/forum/general-1/know-of-any-sql-unit-test-technologies/#p10</guid>
	<description><![CDATA[<div>Question for the SQL Brain Trust:</div>
<div>&#160;</div>
<div>Does anyone know of a good technology out there for doing SQL Server Unit Tests?&#160; Is there anything available in Visual Studio or Data Dude?</div>
<div>&#160;</div>
<div>Thanks.</div>
<div>-Jeff</div>
]]></description>
	<pubDate>Fri, 20 Aug 2010 08:35:50 -0700</pubDate>
</item>
<item>
	<title>SQLGeek on Database Projects in 2008 not scripting header comments of stored procedures anymore??</title>
	<link>http://www.sqlslayer.com/wp/forum/general-1/database-projects-in-2008-not-scripting-header-comments-of-stored-procedures-anymore/#p6</link>
	<category>General</category>
	<guid isPermaLink="true">http://www.sqlslayer.com/wp/forum/general-1/database-projects-in-2008-not-scripting-header-comments-of-stored-procedures-anymore/#p6</guid>
	<description><![CDATA[<p>So while doing some research I came across this. Not exactly what I wanted to see....</p>
<p><a href="http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/b71a8490-5d16-4ff2-b8e8-c344961aa91b" target="_blank">http://social.msdn.microsoft.c.....44961aa91b</a></p>
]]></description>
	<pubDate>Mon, 19 Oct 2009 10:16:42 -0700</pubDate>
</item>
<item>
	<title>SQLGeek on Database Projects in 2008 not scripting header comments of stored procedures anymore??</title>
	<link>http://www.sqlslayer.com/wp/forum/general-1/database-projects-in-2008-not-scripting-header-comments-of-stored-procedures-anymore/#p5</link>
	<category>General</category>
	<guid isPermaLink="true">http://www.sqlslayer.com/wp/forum/general-1/database-projects-in-2008-not-scripting-header-comments-of-stored-procedures-anymore/#p5</guid>
	<description><![CDATA[<p>I also think this is a bug. This is affecting me as well as I am now adding all of our intranet databases to TFS. What&#39;s the point of&#160;having&#160;a header policy if VS just strips it out!</p>
<p>I am trying to find a way around this with no luck so far. Cliff&#39;s solution&#160;will work but it seems like overkill for something that should be supported.</p>
]]></description>
	<pubDate>Mon, 19 Oct 2009 09:47:13 -0700</pubDate>
</item>
<item>
	<title>buckleyc on Database Projects in 2008 not scripting header comments of stored procedures anymore??</title>
	<link>http://www.sqlslayer.com/wp/forum/general-1/database-projects-in-2008-not-scripting-header-comments-of-stored-procedures-anymore/#p4</link>
	<category>General</category>
	<guid isPermaLink="true">http://www.sqlslayer.com/wp/forum/general-1/database-projects-in-2008-not-scripting-header-comments-of-stored-procedures-anymore/#p4</guid>
	<description><![CDATA[<p>Not as hard as you might think.</p>
<br />
<blockquote>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: green; font-size: 8pt;">/*comments here*/</span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">CREATE</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> <span style="color: blue;">Procedure</span> dbo<span style="color: gray;">.</span>test</span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">AS</span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">BEGIN</span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;">&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue;">select</span> 1 </span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">END</span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;">GO</span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;">&#160;</span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">DECLARE</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @Definition <span style="color: blue;">varchar</span><span style="color: gray;">(</span><span style="color: fuchsia;">max</span><span style="color: gray;">)</span></span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">DECLARE</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @comments <span style="color: blue;">varchar</span><span style="color: gray;">(</span><span style="color: fuchsia;">max</span><span style="color: gray;">)</span></span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">DECLARE</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @ProcTop <span style="color: blue;">varchar</span><span style="color: gray;">(</span><span style="color: fuchsia;">max</span><span style="color: gray;">)</span></span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">DECLARE</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @ProcBottom <span style="color: blue;">varchar</span><span style="color: gray;">(</span><span style="color: fuchsia;">max</span><span style="color: gray;">)</span></span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: gray; font-size: 8pt;">&#160;</span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">DECLARE</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @StartComment <span style="color: blue;">int</span></span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">DECLARE</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @EndComment <span style="color: blue;">int</span></span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">DECLARE</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @StartProc <span style="color: blue;">int</span></span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">SELECT</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @Definition<span style="color: gray;">=</span><span style="color: fuchsia;">OBJECT_DEFINITION</span><span style="color: gray;">(</span><span style="color: fuchsia;">OBJECT_ID</span><span style="color: gray;">(</span><span style="color: red;">&#39;dbo.Test&#39;</span><span style="color: gray;">))</span></span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: gray; font-size: 8pt;">&#160;</span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">SET</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @StartComment <span style="color: gray;">=</span> <span style="color: fuchsia;">CHARINDEX</span><span style="color: gray;">(</span><span style="color: red;">&#39;/*&#39;</span><span style="color: gray;">,</span>@Definition<span style="color: gray;">)</span></span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">SET</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @EndComment <span style="color: gray;">=</span> <span style="color: fuchsia;">CHARINDEX</span><span style="color: gray;">(</span><span style="color: red;">&#39;*/&#39;</span><span style="color: gray;">,</span>@Definition<span style="color: gray;">)</span></span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">SET</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @StartProc <span style="color: gray;">=</span> <span style="color: fuchsia;">CHARINDEX</span><span style="color: gray;">(</span><span style="color: red;">&#39;BEGIN&#39;</span><span style="color: gray;">,</span>@Definition<span style="color: gray;">)</span></span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">SET</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @comments <span style="color: gray;">=</span> <span style="color: fuchsia;">SUBSTRING</span><span style="color: gray;">(</span>@Definition<span style="color: gray;">,</span>@StartComment<span style="color: gray;">,</span>@EndComment<span style="color: gray;">+</span>1<span style="color: gray;">)</span></span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">SET</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @ProcTop <span style="color: gray;">=</span> <span style="color: fuchsia;">SUBSTRING</span><span style="color: gray;">(</span>@Definition<span style="color: gray;">,</span>@EndComment<span style="color: gray;">+</span>2<span style="color: gray;">,</span>@StartProc<span style="color: gray;">-</span>@EndComment<span style="color: gray;">)</span></span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">SET</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @ProcBottom <span style="color: gray;">=</span> <span style="color: fuchsia;">SUBSTRING</span><span style="color: gray;">(</span>@Definition<span style="color: gray;">,</span>@StartProc<span style="color: gray;">+</span>5<span style="color: gray;">,</span><span style="color: fuchsia;">LEN</span><span style="color: gray;">(</span>@Definition<span style="color: gray;">))</span></span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: gray; font-size: 8pt;">&#160;</span></p>
<p class="MsoNormal"><span style="font-family: &#34;Courier New&#34;; color: blue; font-size: 8pt;">PRINT</span><span style="font-family: &#34;Courier New&#34;; font-size: 8pt;"> @ProcTop <span style="color: gray;">+</span> <span style="color: gray;">(</span><span style="color: blue;">CHAR</span><span style="color: gray;">(</span>13<span style="color: gray;">)+</span><span style="color: blue;">CHAR</span><span style="color: gray;">(</span>10<span style="color: gray;">))</span> <span style="color: gray;">+</span> @Comments <span style="color: gray;">+</span> @ProcBottom</span></p>
</blockquote>
<p>Just loop your objects and do dynamic sql. You&#39;ll want to replace Create Procedure with Alter Procedure.</p>
]]></description>
	<pubDate>Fri, 09 Oct 2009 15:46:43 -0700</pubDate>
</item>
<item>
	<title>mlakarj on Database Projects in 2008 not scripting header comments of stored procedures anymore??</title>
	<link>http://www.sqlslayer.com/wp/forum/general-1/database-projects-in-2008-not-scripting-header-comments-of-stored-procedures-anymore/#p3</link>
	<category>General</category>
	<guid isPermaLink="true">http://www.sqlslayer.com/wp/forum/general-1/database-projects-in-2008-not-scripting-header-comments-of-stored-procedures-anymore/#p3</guid>
	<description><![CDATA[<p>VS 2008 DB Projects ("Data Dude").&#160; And guess what: it strips out comments between "AS" and "BEGIN" as well, any comment that isn&#39;t actually in the contents of the proc.&#160; We can try to move all our headers to be within the contents of the proc (not really a "header" then, is it?), but that would be time consuming and tricky to do by hand or by script.</p>
]]></description>
	<pubDate>Fri, 09 Oct 2009 06:42:09 -0700</pubDate>
</item>
<item>
	<title>buckleyc on Database Projects in 2008 not scripting header comments of stored procedures anymore??</title>
	<link>http://www.sqlslayer.com/wp/forum/general-1/database-projects-in-2008-not-scripting-header-comments-of-stored-procedures-anymore/#p2</link>
	<category>General</category>
	<guid isPermaLink="true">http://www.sqlslayer.com/wp/forum/general-1/database-projects-in-2008-not-scripting-header-comments-of-stored-procedures-anymore/#p2</guid>
	<description><![CDATA[<p>Do you mean VS 2008 database projects? SSMS 2008 Projects? That TFS thing that I cannot seem to remember the name of?</p>
<br />
<p>Sounds like a bug to me. What I would suggest creating the objects like this:</p>
<blockquote>
<p>Create Procedure schema.name</p>
<p>@param1 datatype</p>
<p>AS</p>
<p>/*</p>
<p>comments here</p>
<p>*/</p>
<br />
</blockquote>
]]></description>
	<pubDate>Thu, 08 Oct 2009 15:53:36 -0700</pubDate>
</item>
<item>
	<title>mlakarj on Database Projects in 2008 not scripting header comments of stored procedures anymore??</title>
	<link>http://www.sqlslayer.com/wp/forum/general-1/database-projects-in-2008-not-scripting-header-comments-of-stored-procedures-anymore/#p1</link>
	<category>General</category>
	<guid isPermaLink="true">http://www.sqlslayer.com/wp/forum/general-1/database-projects-in-2008-not-scripting-header-comments-of-stored-procedures-anymore/#p1</guid>
	<description><![CDATA[<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small; font-family: Times New Roman;">I&#8217;ve noticed Database Projects in 2008 are not scripting header comments of stored procedures anymore. They&#8217;re being stripped out. Which is odd because it worked fine with 2005. This is frustrating because this is where we usually keep all stored proc modification history.&#160; Can anyone please help?</span></p>
]]></description>
	<pubDate>Thu, 08 Oct 2009 13:07:11 -0700</pubDate>
</item>
</channel>
</rss>