In your code if you typed your connection string correct the following code should do it;
using (var conn = new SqlConnection(connectionString))
using (var command = new SqlCommand("ProcedureName", conn)
{
CommandType = CommandType.StoredProcedure }) {
conn.Open();
command.ExecuteNonQuery();
conn.Close();
}
If you need to use parameters in your
StoredProcedure
just add the parameters to the Parameters collection of the SqlCommand object.
Like:
command.Parameters.AddWithValue("paramName", "paramValue");
Good luck,
OI