Visual studio 2015 如何通过VS2015在sql managemet studio上打开Sp

Visual studio 2015 如何通过VS2015在sql managemet studio上打开Sp,visual-studio-2015,ssms,Visual Studio 2015,Ssms,如何通过VS2015在sql managemet studio上打开Sp using (SqlConnection sqlConnection1 = new SqlConnection("Your Connection String")) { using (SqlCommand cmd = new SqlCommand()) { Int32 rowsAffected; cmd.CommandText = "StoredProcedureName"; cmd.CommandType

如何通过VS2015在sql managemet studio上打开Sp

using (SqlConnection sqlConnection1 = new SqlConnection("Your Connection String")) {
using (SqlCommand cmd = new SqlCommand()) {
  Int32 rowsAffected;

  cmd.CommandText = "StoredProcedureName";
  cmd.CommandType = CommandType.StoredProcedure;
  cmd.Connection = sqlConnection1;

  sqlConnection1.Open();

  rowsAffected = cmd.ExecuteNonQuery();

}}