View Single Post
  #2 (permalink)  
Old 11-26-2007, 08:01 AM
Balasubramanian.S Balasubramanian.S is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 182
Balasubramanian.S is on a distinguished road
Default Re: Using arrays in stored procedures

Hi,

Send them as a string of comma seperated values instead of an array. Then, in your sp, do this:

Code:

declare @sql varchar(1000)
Set @sql = 'Select * From Products Where Prod_Code IN (' + @values + ')'
exec(@sql)



Where @values is your parameter.
__________________
S.Balasubramanian
Nothing is impossible
Reply With Quote