Create Variable when needed (dynamic)
Hi,
Is it possible to create dynamic variables in SQL Server 2000? I mean, I want my stored procedure to create variable and declare it, only when needed.
For example,
I have got a variable called, @str0 of type varchar(4000). When the limit is full then it will create a variable @str1 of type varchar(4000). When that limit is full then it will create another variable @str2, @str3, @str4 â¦.
Can someone please advice how can I do it in SQL server 2000?
Thanks in advance
Rashed
|