private static String connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["SQLConnection"].ConnectionString; private static SqlConnection SQLConnection = new SqlConnection(connectionString); public static void runSQL(String SQL) { SQLCommand = new SqlCommand(SQL, SQLConnection); SQLConnection.Open(); SQLCommand.ExecuteNonQuery(); SQLConnection.Close(); }
Static
try
catch
finally
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)