SQL transaction not working:
BEGIN TRANSACTION AddEmployees
INSERT INTO Employees
VALUES(N'595002', N'John Meah', N'20000212', 32.25),
(N'928375', N'Chuck Stansil', N'20080628'),
(N'792764', N'Orlando Perez', N'20000616', 12.95);
COMMIT TRANSACTION AddEmployees;
GO
Part of the problem is you are using wrong syntax. In SQL-Server 2005 you cannot use commas
,between thevaluesstatements. You have to specify eachINSERT INTO....VALUES...statement. And then in your secondINSERTyou do not have the correct number of parameters: