Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- USING System;
- USING System.DATA.SqlClient;
- class Program
- {
- static void Main()
- {
- string connectionString = "Server=ACER-5253G\\SQLEXPRESS; Database=SoftUni; Trusted_Connection=True";
- SqlConnection connection = NEW SqlConnection(connectionString);
- connection.OPEN();
- USING (connection)
- {
- string creationCommandString = "INSERT INTO JudgeFails VALUES " +
- "('Judge RIP', 300), " +
- "('Judge Reborn', 200)"
- ;
- SqlCommand createCommand = NEW SqlCommand(creationCommandString, connection);
- Console.WriteLine(createCommand.ExecuteNonQuery());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment