Click here to Skip to main content
15,896,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to Declare array in stored procedure. Adding values to array through query. and iterating through a loop for array elements in mssql stored procedure
Posted

1 solution

Why use an array when you have a complete database engine capable of handling table variables? Check this link:
http://odetocode.com/articles/365.aspx[^]

Good luck!
 
Share this answer
 
Comments
Harshal Jumle 7-Feb-13 23:06pm    
I need to check if perticular entry is present in the table if present then update else insert
Harshal Jumle 7-Feb-13 23:07pm    
I have multiple rows of data and i need to check each row
E.F. Nijboer 8-Feb-13 5:05am    
Yes, I understand. Isn't that ideally suitable for using a query on a table? You can use a JOIN operation to check values in a table against another table.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900