how to use sqlcommand

Solutions on MaxInterview for how to use sqlcommand by the best coders in the world

showing results for - "how to use sqlcommand"
Paul
16 Sep 2017
1 SqlConnection conn = new SqlConnection("Database=student;Server=.;user=sa;password=aaaaaaa");  
2            conn.Open();  // Open the connection  
3            // body    
4            // body   
5            conn.Close(); // Close the connection