Possible Duplicate:
Split Function equivalent in tsql?
SQL Search column for each variable in CSV string
I have a stored procedure which takes input @Notifications
as 34181,34182,34184
etc, a string.
Now, I want to split this string in such a way that another variable @Notification
will contain first time 34181
and next time 34182
etc.
These numbers 34181
length is not fixed. It can be 341812
or just 3
also because of this I cannot use substr function.
How can I split this string?