I am working on sql server 2005. I am writing a T sql script which will need to add a table to the database, but i want to add the check that if the table is already created. But my script is giving me this error message:
Msg 102, Level 15, State 1, Line 7
Incorrect syntax near 'ON'.
Msg 2714, Level 16, State 6, Line 1
There is already an object named 'DeliveryChargeRegion' in the database.
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near 'END'.