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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Working with array

Author  Topic 

Masum7
Starting Member

33 Posts

Posted - 2009-06-01 : 02:46:54
I tried to pass array parameter to a proc. But found no way.

Then I tried to send a string which is comma delimited. But I need to make a cursor from the string which is actually comma delimited.
But problem is I found no ays to built array from the string parameter.
===========
ALTER PROC resendFromOutbox(@Ids AS VARCHAR)
as
BEGIN
//DECLARE SmsCursor CURSOR FOR EXEC('SELECT * FROM WebSMS WHERE Id IN('+@Ids+')')
END
=========
Please help.

Masum

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-06-01 : 05:18:24
http://www.sommarskog.se/arrays-in-sql-2005.html


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

Masum7
Starting Member

33 Posts

Posted - 2009-06-01 : 05:42:31
Thanks webfred for the reference.

Masum
Go to Top of Page
   

- Advertisement -