Hi,
I am working on SQL 2008 database. In Micosoft SQL server Management studio, i am trying to insert multiple records at a time in a table, using this query
I think so the syntax was correct. But i dont know why am facing this error. The same problem in SQL Server 2000 also.I am working on my server database.
Please help me out. Thanks in advance.
I am working on SQL 2008 database. In Micosoft SQL server Management studio, i am trying to insert multiple records at a time in a table, using this query
Code:
[B] insert into test1 values(6,'san6',1),( 7,'san7',1);[/B]
Error:
Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near ','.
Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near ','.
I think so the syntax was correct. But i dont know why am facing this error. The same problem in SQL Server 2000 also.I am working on my server database.
Please help me out. Thanks in advance.
Comment