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

  • 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