<?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: Practical VBA Examples for the DBA: Part 1</title>
	<atom:link href="http://www.youdidwhatwithtsql.com/practical-vba-examples-dba-part-1/268/feed" rel="self" type="application/rss+xml" />
	<link>http://www.youdidwhatwithtsql.com/practical-vba-examples-dba-part-1/268</link>
	<description>making DBAs everywhere curse!</description>
	<lastBuildDate>Sat, 04 Feb 2012 06:02:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Rhys</title>
		<link>http://www.youdidwhatwithtsql.com/practical-vba-examples-dba-part-1/268/comment-page-1#comment-206</link>
		<dc:creator>Rhys</dc:creator>
		<pubDate>Tue, 20 Jul 2010 21:10:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/?p=268#comment-206</guid>
		<description>Hi Sean,

I don&#039;t have access to a Windows PC now but I&#039;d print out the command in a MsgBox. Something like MsgBox(“pa.pr_Sample ” &amp; Cstr(p1) &amp; “, ” &amp; cstr(p2) &amp; “, ” &amp; _
CStr(p3) &amp; “, ” &amp; CStr(p4) &amp; “, ” &amp; CStr(p5) &amp; “, ” &amp; CStr(p6) &amp; “, ” &amp; CStr(p7))

If you print out the text you&#039;ll probably be able to spot the sql syntax error.

Cheers

Rhys</description>
		<content:encoded><![CDATA[<p>Hi Sean,</p>
<p>I don&#8217;t have access to a Windows PC now but I&#8217;d print out the command in a MsgBox. Something like MsgBox(“pa.pr_Sample ” &amp; Cstr(p1) &amp; “, ” &amp; cstr(p2) &amp; “, ” &amp; _<br />
CStr(p3) &amp; “, ” &amp; CStr(p4) &amp; “, ” &amp; CStr(p5) &amp; “, ” &amp; CStr(p6) &amp; “, ” &amp; CStr(p7))</p>
<p>If you print out the text you&#8217;ll probably be able to spot the sql syntax error.</p>
<p>Cheers</p>
<p>Rhys</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.youdidwhatwithtsql.com/practical-vba-examples-dba-part-1/268/comment-page-1#comment-205</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Tue, 20 Jul 2010 19:14:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/?p=268#comment-205</guid>
		<description>I am trying to extend this for more than one parameter and am receiving the following error:

Syntax error or access violation

With Cmd
    .CommandType = adCmdStoredProc
    .CommandText = &quot;pa.pr_Sample &quot; &amp; Cstr(p1) &amp; &quot;, &quot; &amp; cstr(p2) &amp; &quot;, &quot; &amp; _
        CStr(p3) &amp; &quot;, &quot; &amp; CStr(p4) &amp; &quot;, &quot; &amp; CStr(p5) &amp; &quot;, &quot; &amp; CStr(p6) &amp; &quot;, &quot; &amp; CStr(p7)
End With</description>
		<content:encoded><![CDATA[<p>I am trying to extend this for more than one parameter and am receiving the following error:</p>
<p>Syntax error or access violation</p>
<p>With Cmd<br />
    .CommandType = adCmdStoredProc<br />
    .CommandText = &#8220;pa.pr_Sample &#8221; &amp; Cstr(p1) &amp; &#8220;, &#8221; &amp; cstr(p2) &amp; &#8220;, &#8221; &amp; _<br />
        CStr(p3) &amp; &#8220;, &#8221; &amp; CStr(p4) &amp; &#8220;, &#8221; &amp; CStr(p5) &amp; &#8220;, &#8221; &amp; CStr(p6) &amp; &#8220;, &#8221; &amp; CStr(p7)<br />
End With</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.youdidwhatwithtsql.com/practical-vba-examples-dba-part-1/268/comment-page-1#comment-101</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Tue, 25 Aug 2009 02:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.youdidwhatwithtsql.com/?p=268#comment-101</guid>
		<description>Thanks.  Very useful information!</description>
		<content:encoded><![CDATA[<p>Thanks.  Very useful information!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

