Hi Mahendra Here is the code:
SqlConnection con = new SqlConnection("<connectionString>")
con.Open();
SqlCommand com = new SqlCommand("<storeProcedureName>", con);
com.CommandType = CommandType.StoreProcedure;
com.Parameters.Add("<param1>", SqlDBType.Varchar);
com.Parameters[0].Direction = ParameterDirection.Output;
com.ExecuteNonProcedure()
Object val = com.Parameters[0].Value;
Hope this will helps you
Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/
Mahendrabasutkar, if this helps please login to Mark As Answer. | Alert Moderator