自己回答
string conn = "Data Source=;Integrated Security=SSPI;Initial Catalog=ok";
SqlConnection _Connection = new SqlConnection(conn);
SqlCommand _Command = new SqlCommand ("存储过程名称",conn);
_Command.Connection.Open();
_ = CommandType.StoredProcedure;
try
{
_Command.ExecuteNonQuery();
_Command.Connection.Close();
}
catch(SqlException EX)
{
}