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
 General SQL Server Forums
 New to SQL Server Programming
 Multiple value in single parameter
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SQLBoy14
Starting Member

USA
35 Posts

Posted - 03/06/2014 :  22:24:16  Show Profile  Reply with Quote
Hi all,
I have a question:
I am writting the T-SQL using some parameters. One of the parameter is to display the ZoneID which has about 2100 records. So I declare the parameter (called it @ZoneID varchar(max)). Now, how do I make all the value available for multiple selection? For example, if I execute the query, I can put the ZoneID (for example:) YH09, TR45, TTS0.

Thank you

SQLBoy

khtan
In (Som, Ni, Yak)

Singapore
17598 Posts

Posted - 03/06/2014 :  22:33:42  Show Profile  Reply with Quote
please do read http://vyaskn.tripod.com/passing_arrays_to_stored_procedures.htm


KH
Time is always against us

Go to Top of Page

SQLBoy14
Starting Member

USA
35 Posts

Posted - 03/06/2014 :  22:45:05  Show Profile  Reply with Quote
Thank you Khtan. I checked the link and very helpful. Thank you.

SQLBoy
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.05 seconds. Powered By: Snitz Forums 2000