-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: VadivelMohanakrishnan
Message 2 in Discussion
How about passing the values as comma seperated values and then splitting them inside
the SP? I have written a sample for splitting the values .. do check whether it would
be of any us to you!! /* Local Variable Declarations for this split function*/
Declare @strDelimitedString varchar(50)
Declare @Start int
Declare @End int
Declare @splitValue varchar(50) /* Initialize some string and the start position.
*/ Set @strDelimitedString = 'Simran,Vadivel,Sneha,' -- The string SHOULD END with a
comma
set @Start = 1 /* Set the delimiter in the input string. Based on this delimiter
only the string would be split*/
set @End = charindex(',',@strDelimitedString) while (@End>0)
begin
Set @splitValue = substring(@strDelimitedString, @Start, @End - @Start )
set @Start = @End + 1
set @end = charindex(',',@strDelimitedString,@End + 1)
Select @splitValue 'Split String'
end Best Regards Vadivel MVP ASP/ASP.NET
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]