Im trying to excite a scalar comment, to do a count of records but cant get it to work
I dont know how to write the command.
Thanks for any help!
Code I have:
SqlConnection sqlConnection1 = new SqlConnection("Data Source=s...string works");
SqlCommand cmd = new SqlCommand();
cmd.CommandType = CommandType.Text;
cmd.Connection = sqlConnection1;
myv = (int)cmd.ExecuteScalar();
// close connection