string connectionString = ConfigurationManager.ConnectionStrings["MyConnection"].ConnectionString;
using (SqlConnection connection = new SqlConnection(connectionString))
string commandText = "TRUNCATE TABLE table1";
using (SqlCommand command = new SqlCommand(commandText, connection))
Open in new window
The revolutionary project management tool is here! Plan visually with a single glance and make sure your projects get done.