Hi Priti2010 write down code below:
SqlConnection con = new SqlConnection("<ur-connection-string>");
SqlCommand com = new SqlCommand("sp_ServiceRcds", con);
com.Parameters.Add("@Service_Name", SqlDbType.NChar);
com.Parameters(0).Length=100;
com.Parameters(0).Value = <ur-param-value>;
com.Parameters.Add("@output", SqlDbType.NChar);
com.Parameters(1).Length=50;
com.Parameters(1).Direction = ParameterDirection.Output;
con.Open();
com.CommandType = CommandType.StoreProcedure;
com.ExecuteNonQuery();
this way you can execute store procedure from your application.
Hope this will help you.
Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/
Priti2010, if this helps please login to Mark As Answer. | Alert Moderator