SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Analysis Server and Reporting Services (2012)
 Multiple values in the Define Query Paramaters
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Cowski
Starting Member

USA
29 Posts

Posted - 09/24/2013 :  16:21:35  Show Profile  Send Cowski an ICQ Message  Reply with Quote
I'm using a "NOT IN (values)" for a logic in my query. So multiple values are allowed in there. Works fine in t-sql.
I'm in Report Builder 3.0.

I'm in the Dataset Properties -> Pasted in my t-sql code -> Query Designer. I click the ! to Run the code. The "Define Quary Parameters" dialog box comes up. At this point I start putting in my values to test.

Is there a way to allow the input of multiple values in a INT type box? Example: 33802, 55602

It appears to work for text. I'm getting the following error when I try to input the above set of numbers:
"Conversion failed when converting the nvarchar value '33802, 55602' to data type int"
which makes sense. It's expecting an integer, which it needs.

Thanks!

waterduck
Aged Yak Warrior

Malaysia
961 Posts

Posted - 10/01/2013 :  03:37:13  Show Profile  Reply with Quote
something like this?
http://www.mssqltips.com/sqlservertip/2866/sql-server-reporting-services-using-multivalue-parameters/
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000