Answers for "how to create sql connection in c#"

SQL
5

sql connection c#

private static void CreateCommand(string queryString,
    string connectionString)
{
    using (SqlConnection connection = new SqlConnection(
               connectionString))
    {
        SqlCommand command = new SqlCommand(queryString, connection);
        command.Connection.Open();
        command.ExecuteNonQuery();
    }
}
Posted by: Guest on March-18-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language