From front end(studio 2008) I am passing values to sql procedure as :
string a = “hello” + “098765” + “world” + “90.0909”
These are 4 different values that I’ve concatenated into a string a;
now i pass this string a to the sql procedure using c# sqlCommand object.
Now, how do I retrieve these 4 values in sql procedure as I’ve created the procedure as:
create procedure Proc_name (@concatenated_string varchar(100))
as
insert into table1 values(**how can i get those 4 values here**).
I used arrays but it didn’t work.
The standard way to do this would be to use four parameters on the procedure:
Then from your code (giving a c# example using ADO.NET)