<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Automating T-SQL Testing</title>
	<atom:link href="http://facility9.com/2009/02/16/automating-t-sql-testing/feed" rel="self" type="application/rss+xml" />
	<link>http://facility9.com/2009/02/16/automating-t-sql-testing</link>
	<description>Jeremiah Peschka&#039;s ruminations on sql, ruby, c#, and other things</description>
	<lastBuildDate>Wed, 28 Jul 2010 14:05:12 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jayant das</title>
		<link>http://facility9.com/2009/02/16/automating-t-sql-testing#comment-1104</link>
		<dc:creator>jayant das</dc:creator>
		<pubDate>Fri, 22 Jan 2010 08:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://facility9.com/?p=384#comment-1104</guid>
		<description>Hi

This is great article for sql server developer

Regards
Jayant Das
9313406257</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>This is great article for sql server developer</p>
<p>Regards<br />
Jayant Das<br />
9313406257</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yury</title>
		<link>http://facility9.com/2009/02/16/automating-t-sql-testing#comment-775</link>
		<dc:creator>Yury</dc:creator>
		<pubDate>Thu, 27 Aug 2009 17:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://facility9.com/?p=384#comment-775</guid>
		<description>OK. Sending it to your GMail address...

Thanks a LOT!</description>
		<content:encoded><![CDATA[<p>OK. Sending it to your GMail address&#8230;</p>
<p>Thanks a LOT!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremiah Peschka</title>
		<link>http://facility9.com/2009/02/16/automating-t-sql-testing#comment-774</link>
		<dc:creator>Jeremiah Peschka</dc:creator>
		<pubDate>Thu, 27 Aug 2009 17:19:18 +0000</pubDate>
		<guid isPermaLink="false">http://facility9.com/?p=384#comment-774</guid>
		<description>Yury, do you think you could paste your full SQL either in the comments or send it to me in an email? Being able to see the whole picture would help out a lot.

My info is available at: http://facility9.com/about/getting-in-touch/</description>
		<content:encoded><![CDATA[<p>Yury, do you think you could paste your full SQL either in the comments or send it to me in an email? Being able to see the whole picture would help out a lot.</p>
<p>My info is available at: <a href="http://facility9.com/about/getting-in-touch/" rel="nofollow">http://facility9.com/about/getting-in-touch/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yury</title>
		<link>http://facility9.com/2009/02/16/automating-t-sql-testing#comment-772</link>
		<dc:creator>Yury</dc:creator>
		<pubDate>Thu, 27 Aug 2009 16:48:50 +0000</pubDate>
		<guid isPermaLink="false">http://facility9.com/?p=384#comment-772</guid>
		<description>Jeramiah,

Thank you very much for looking into this and for fixing that! I really appreciate it, there was no confusing: I am glad I found this code!

The code runs fine now. However, I am now seeing something else results-wise...

The sproc takes in login name and spits out a true/false depending whether the login is valid.

What I am getting now is the error table with an entry for each run with the same error message:
&quot;Procedure or function &#039;prc_CheckLogin&#039; expects parameter &#039;@LoginName&#039;, which was not supplied&quot;

More specifics...

The #temp table shows:
ProcName        Run    ParamOrder   x
prc_CheckLogin  1      1           @LoginName = &#039;&#039;
prc_CheckLogin  2      1           @LoginName = &#039;nonexistent&#039;

The #procs table shows:
Command
EXEC prc_CheckLogin @LoginName = &#039;&#039;
EXEC prc_CheckLogin @LoginName = &#039;nonexistent&#039;

Somehow, it doesn&#039;t execute the command correctly. In the code, I substituted --myprc-- with OtherDB.dbo.prc_checklogin since that sp sits in the different db but on the same server, and it doesn&#039;t look like it can&#039;t access the proc since commands are executed just fine...

Any suggestions?

As always, appreciate your time,

-Yury</description>
		<content:encoded><![CDATA[<p>Jeramiah,</p>
<p>Thank you very much for looking into this and for fixing that! I really appreciate it, there was no confusing: I am glad I found this code!</p>
<p>The code runs fine now. However, I am now seeing something else results-wise&#8230;</p>
<p>The sproc takes in login name and spits out a true/false depending whether the login is valid.</p>
<p>What I am getting now is the error table with an entry for each run with the same error message:<br />
&#8220;Procedure or function &#8216;prc_CheckLogin&#8217; expects parameter &#8216;@LoginName&#8217;, which was not supplied&#8221;</p>
<p>More specifics&#8230;</p>
<p>The #temp table shows:<br />
ProcName        Run    ParamOrder   x<br />
prc_CheckLogin  1      1           @LoginName = &#8221;<br />
prc_CheckLogin  2      1           @LoginName = &#8216;nonexistent&#8217;</p>
<p>The #procs table shows:<br />
Command<br />
EXEC prc_CheckLogin @LoginName = &#8221;<br />
EXEC prc_CheckLogin @LoginName = &#8216;nonexistent&#8217;</p>
<p>Somehow, it doesn&#8217;t execute the command correctly. In the code, I substituted &#8211;myprc&#8211; with OtherDB.dbo.prc_checklogin since that sp sits in the different db but on the same server, and it doesn&#8217;t look like it can&#8217;t access the proc since commands are executed just fine&#8230;</p>
<p>Any suggestions?</p>
<p>As always, appreciate your time,</p>
<p>-Yury</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremiah Peschka</title>
		<link>http://facility9.com/2009/02/16/automating-t-sql-testing#comment-771</link>
		<dc:creator>Jeremiah Peschka</dc:creator>
		<pubDate>Thu, 27 Aug 2009 14:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://facility9.com/?p=384#comment-771</guid>
		<description>Yury, I fixed the issue. It basically boils down to using [TEXT()] instead of [text()] in the query. The T-SQL syntax highlighter that I am using was capitalizing the TEXT because it is also a data type. Let me know if you keep having problems with this code and I&#039;ll help out however I can. Sorry about any confusing that mistake may have caused.</description>
		<content:encoded><![CDATA[<p>Yury, I fixed the issue. It basically boils down to using [TEXT()] instead of [text()] in the query. The T-SQL syntax highlighter that I am using was capitalizing the TEXT because it is also a data type. Let me know if you keep having problems with this code and I&#8217;ll help out however I can. Sorry about any confusing that mistake may have caused.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yury</title>
		<link>http://facility9.com/2009/02/16/automating-t-sql-testing#comment-766</link>
		<dc:creator>Yury</dc:creator>
		<pubDate>Wed, 26 Aug 2009 21:40:10 +0000</pubDate>
		<guid isPermaLink="false">http://facility9.com/?p=384#comment-766</guid>
		<description>Hi Jeremiah,

I came across this method of testing the sproc and I really like it. I am a QA Engineer and we are thinking of adopting that script for our testing purposes.

I am not an expert in SQL but I could easily follow the steps. So, so far, I created a table and populated it with some seed data for the sproc I am trying to test.

Then I modified the last chank of code as follows:
1. Replaced test.[Procedures] with proper DB (actually just left Procedures)
2. Replaced --myproc-- with exec MyDB.dbo.MyProc

When I ran it, I got whole bunch of errors:
#1. Complain about invalid XML identifier in Text() as required by FOR XML; &#039;(&#039; is the first character at fault
#2. When I removed () around this column name, I got: &quot;Incorrect syntax near the keyword &#039;EXEC&#039;. Msg 156, Level 15, State 1. Line 34 AND also Incorrect syntax near &#039;&gt;&#039;, same line.

Any suggestions to make this script run? Appreciate it.
-Yury</description>
		<content:encoded><![CDATA[<p>Hi Jeremiah,</p>
<p>I came across this method of testing the sproc and I really like it. I am a QA Engineer and we are thinking of adopting that script for our testing purposes.</p>
<p>I am not an expert in SQL but I could easily follow the steps. So, so far, I created a table and populated it with some seed data for the sproc I am trying to test.</p>
<p>Then I modified the last chank of code as follows:<br />
1. Replaced test.[Procedures] with proper DB (actually just left Procedures)<br />
2. Replaced &#8211;myproc&#8211; with exec MyDB.dbo.MyProc</p>
<p>When I ran it, I got whole bunch of errors:<br />
#1. Complain about invalid XML identifier in Text() as required by FOR XML; &#8216;(&#8216; is the first character at fault<br />
#2. When I removed () around this column name, I got: &#8220;Incorrect syntax near the keyword &#8216;EXEC&#8217;. Msg 156, Level 15, State 1. Line 34 AND also Incorrect syntax near &#8216;&gt;&#8217;, same line.</p>
<p>Any suggestions to make this script run? Appreciate it.<br />
-Yury</p>
]]></content:encoded>
	</item>
</channel>
</rss>
