Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 stored procedure????????

Author  Topic 

sweet_777
Starting Member

16 Posts

Posted - 2011-01-27 : 07:29:32
Hi all,

How to pass arraylist values(as input parameters) to the stored procedure .

Regards
rama

Thanks & Regards
Sweet_77

MIK_2008
Master Smack Fu Yak Hacker

1054 Posts

Posted - 2011-01-27 : 07:36:33
like this

Exec abc @arrayList='1,2,3,4,5,6,7,...,Nth int'


Cheers!
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2011-01-27 : 08:00:45
What version of SQL? If 2008, use a table-type parameter

--
Gail Shaw
SQL Server MVP
Go to Top of Page

sweet_777
Starting Member

16 Posts

Posted - 2011-01-27 : 08:11:15
sqlserver2005

Thanks & Regards
Sweet_77
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-01-28 : 01:15:32
Search for Array+SQL Server in google/bing. You will find sommarskog's article.

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -