 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; SQL Parameters</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/sql-parameters/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 00:29:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>View in SQL 2000</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/view-in-sql2000/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/view-in-sql2000/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 09:12:54 +0000</pubDate>
		<dc:creator>Pkaur</dc:creator>
				<category><![CDATA[SQL 2000]]></category>
		<category><![CDATA[SQL Parameters]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2000]]></category>
		<category><![CDATA[SQL View]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[How to create view with parameter? Thanks and regards.]]></description>
				<content:encoded><![CDATA[<p>How to create view with parameter?<br />
Thanks and regards.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/view-in-sql2000/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hide SQL Server 2008 input parameters</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/hide-input-parameters/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/hide-input-parameters/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 06:28:10 +0000</pubDate>
		<dc:creator>Virajtky</dc:creator>
				<category><![CDATA[input parameters]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL Parameters]]></category>
		<category><![CDATA[SQL Server 2008]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi Sir, I wanna help from you . i have designed a report on reportserver . (sql 2008). its includes two variables which are userid and password. Because entering the user id and password , only the data who can view authorised section. User id and password should be keyed and it check with the [...]]]></description>
				<content:encoded><![CDATA[<p>Hi Sir, I wanna help from you . i have designed a report on reportserver . (sql 2008). its includes two variables which are userid and password. Because entering the user id and password , only the data who can view authorised section. User id and password should be keyed and it check with the table which in database. My issue is that how do we hide the above two parameters, after entering the two values . (or can we hide the entered password on the said password column. Thankx. VirajK (Sri Lanka)</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/hide-input-parameters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Parameter in select statement</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/parameter-in-select-statement/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/parameter-in-select-statement/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 21:31:36 +0000</pubDate>
		<dc:creator>Plugsharma</dc:creator>
				<category><![CDATA[SELECT statement]]></category>
		<category><![CDATA[SQL Parameters]]></category>
		<category><![CDATA[SQL statements]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, I need to pass a parameter into a stored procedure which values are dynamic always. Executing a variable which having the Select statement. Following query working fine. BEGIN DECLARE @strQuery NVARCHAR(MAX) DECLARE @CountryId INT DECLARE @CityId INT SET @CountryId = 2 SET @CityId = &#8216; AND CityId IN (23,45,85,86)&#8217; SELECT @strQuery= &#8216;SELECT VendorId From [...]]]></description>
				<content:encoded><![CDATA[<p>Hi,</p>
<p>I need to pass a parameter into a stored procedure which values are dynamic always. Executing a variable which having the Select statement.</p>
<p>Following query working fine.</p>
<p>BEGIN<br />
DECLARE @strQuery NVARCHAR(MAX)<br />
DECLARE @CountryId INT<br />
DECLARE @CityId INT</p>
<p>SET @CountryId = 2<br />
SET @CityId = &#8216; AND CityId IN (23,45,85,86)&#8217;</p>
<p>SELECT @strQuery= &#8216;SELECT VendorId From Vendors<br />
WHERE CountryId = &#8216;+@CountryId+&#8217; &#8216;+@CityId+&#8217;<br />
ORDERBY CreatedDate&#8217;</p>
<p>EXEC(@strQuery)<br />
END</p>
<p>I need to execute above in an open select statement instead of executing @strQuery.</p>
<p>Getting error as When trying through following script as &#8220;Conversion failed when converting the varchar value &#8216; AND CityId (23,45,85,86)&#8217; to data type int&#8221; </p>
<p>SELECT VendorId From Vendors<br />
WHERE CountryId = @CountryId + &#8216; &#8216; +@CityId<br />
ORDERBY CreatedDate</p>
<p>Please help me to get it working through above select statement.</p>
<p>Thanks</p>
<p>Sharma</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/parameter-in-select-statement/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Parameter Date Conversion in SQL 2000</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/parameter-date-conversion/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/parameter-date-conversion/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 16:22:09 +0000</pubDate>
		<dc:creator>Maheshwag</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2000]]></category>
		<category><![CDATA[SQL commands]]></category>
		<category><![CDATA[SQL Parameters]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[String manipulation]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[my code is : string sql="insert into dummy(date)values(@date)"; sqlcommand cmd=new sqlcommand(sql,con); cmd.parameters.add("@date",sqldbtype.datetime).values=maskedtextbox1.text text; cmd.executenonquery(); the problem is it's throw and error like  conversion of varchar to date; Note :- my demand to put date in DD/MM/YYYY format. ]]></description>
				<content:encoded><![CDATA[<p>my code is :</p>
<div></div>
<div>
<pre></div>
<div></div>
<div>string sql="insert into dummy(date)values(@date)";</div>
<div></div>
<div>sqlcommand cmd=new sqlcommand(sql,con);</div>
<div></div>
<div>cmd.parameters.add("@date",sqldbtype.datetime).values=maskedtextbox1.text</div>
<div>text;</div>
<div></div>
<div>cmd.executenonquery();</div>
<div></div>
<div>the problem is it's throw and error like  conversion of varchar to date;</div>
<div></div>
<div>Note :- my demand to put date in DD/MM/YYYY format. </div>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/parameter-date-conversion/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SSRS Dynamic Report Parms</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/ssrs-dynamic-report-parms/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/ssrs-dynamic-report-parms/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 16:14:27 +0000</pubDate>
		<dc:creator>Mgee16</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Parameters]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SSRS]]></category>
		<category><![CDATA[SSRS reports]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am desiging a report to use several parameters. The first parm is report type. I need the other parameters to show or hide depending on the selection made to the first parameter. Can anyone help? Thanks]]></description>
				<content:encoded><![CDATA[<p>I am desiging a report to use several parameters. The first parm is report type. I need the other parameters to show or hide depending on the selection made to the first parameter. Can anyone help? Thanks</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/ssrs-dynamic-report-parms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How should I make the SQL in iBatis having Parameter of ListMap?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-should-i-make-the-sql-in-ibatis-having-parameter-of-listmap/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/how-should-i-make-the-sql-in-ibatis-having-parameter-of-listmap/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 05:17:31 +0000</pubDate>
		<dc:creator>Jhyukchoi</dc:creator>
				<category><![CDATA[iBATIS]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Parameters]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[How should I make the SQL in iBatis having Parameter of List&#60;Map&#62;? When I search primery key at a table having two primery key, I have plural parameters as a parameter. This parameter is List&#60;Map&#62;. It is an example of Parameter as follows EX) 1. parameter List&#60;Map&#62; paramList = new ArrayList&#60;Map&#62;(); Map&#60;String, Object&#62; map1 = [...]]]></description>
				<content:encoded><![CDATA[<p>How should I make the SQL in iBatis having Parameter of List&lt;Map&gt;?<br/><br/> When I search primery key at a table having two primery key, I have plural parameters as a parameter. This parameter is List&lt;Map&gt;.<br/><br/> It is an example of Parameter as follows<br/><br/> EX) <br/><br/> 1. parameter<br/><br/> List&lt;Map&gt; paramList = new ArrayList&lt;Map&gt;();<br/><br/> Map&lt;String, Object&gt; map1 = new HashMap&lt;String, Object&gt;(); map1.put(&#8220;PK1&#8243;, &#8220;aaa&#8221;); map1.put(&#8220;PK2&#8243;, &#8220;bbb&#8221;);<br/><br/> Map&lt;String, Object&gt; map2 = new HashMap&lt;String, Object&gt;(); map2.put(&#8220;PK1&#8243;, &#8220;ccc&#8221;); map2.put(&#8220;PK2&#8243;, &#8220;ddd&#8221;);<br/><br/> paramList.add(map1); paramList.add(map2);<br/><br/> 2. SQL<br/><br/> SELECT * FROM T1TABLE WHERE PK1 = ? AND PK2 = ?<br/><br/> Return is List&lt;Map&gt;!<br/><br/> thank you<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/how-should-i-make-the-sql-in-ibatis-having-parameter-of-listmap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pass variable from Foreach loop to stored Procedure parameters</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/pass-variable-from-foreach-loop-to-stored-procedure-parameters/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/pass-variable-from-foreach-loop-to-stored-procedure-parameters/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 20:51:22 +0000</pubDate>
		<dc:creator>IG1944</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Parameters]]></category>
		<category><![CDATA[SQL stored procedures]]></category>
		<category><![CDATA[SQL variables]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[in control flow I run &#8220;Execute SQL Task&#8221; to retrive array variables like State Code (&#8216;AR&#8217;, &#8216;WI&#8217;, .. et). Then I run ForeEach Loop Container and pass global variable gv_StateCode into Data Flow, where I run stored proc with one parameter in &#8220;OLE DB Source&#8221; (like exec sp_StProcname ?) and i assign parameter in Set [...]]]></description>
				<content:encoded><![CDATA[<p>in control flow  I run &#8220;Execute SQL Task&#8221; to retrive array variables like State Code (&#8216;AR&#8217;, &#8216;WI&#8217;, .. et). Then I run ForeEach Loop Container and pass global variable gv_StateCode into Data Flow, where I run stored proc with one parameter in &#8220;OLE DB Source&#8221; (like exec sp_StProcname ?) and i assign parameter in Set Query parameters dialog to gv_StateCode as Parameter0 = User::gv_StateCode.<br />
When I run this package I got error: &#8220;The SQL command requires a parameter named &#8220;@p_StateCode&#8221;, which is not found in the parameter mapping.&#8221;</p>
<p>Please help me to resolve this issue.</p>
<p>Thanks IG</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/pass-variable-from-foreach-loop-to-stored-procedure-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/22 queries in 0.029 seconds using memcached
Object Caching 743/840 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 02:03:48 -->