Home Forums SQL Server 2008 SQL Server Newbies To insert data only if it doesnot exist if exist show the table info and print a message RE: To insert data only if it doesnot exist if exist show the table info and print a message
SQLTestUser
Hall of Fame
Points: 3997
More actions
September 14, 2010 at 4:29 pm
#1221054
I get an error with the begin end as well
Msg 156 level 15 state 1 line 7
Incorrect syntax near the keyword Else
Msg 102 level 15 state 1 line 12
Incorrect syntax near END
Is there any other way to do this