Cretate SQL connection maually Using C#

This is one of the most asked questions by a beginner in the C# devlopment

SqlConnection SqlCon = new SqlConnection(connectionString);

SqlCon.Open();

SqlCommand SqlCmd = new SqlCommand(cmdtxt, SqlCon);

SqlCmd.Dispose();

SqlCon.Close();

Leave a comment