Click here to Skip to main content
15,888,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Frnds,
i want create run time array in stored procedure is it possible?
thanks
Posted

You can't create a true array - MsSQL does not have an array datatype.

The best you can do is to use a VARCHAR(MAX) and fill it with (for example) comma separated values.
 
Share this answer
 
SQL Server doesn't have an array data type but you can use table types. For example: How to pass multiple records to a Stored Procedure[^]
 
Share this answer
 
U can use temp table or table variable also
 
Share this answer
 

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