create table

  • if object_id('hhhhhhh') is not null

    drop table hhhhhh

    go

    create table hhhhhhh

    (name varchar(50))

    If i run the above statement i am getting the following errors.

    can u explain why it's so

    Server: Msg 3701, Level 11, State 5, Line 2

    Cannot drop the table 'hhhhhh', because it does not exist in the system catalog.

    Server: Msg 2714, Level 16, State 6, Line 1

    There is already an object named 'hhhhhhh' in the database.

  • you are dropping table hhhhhh and creating table hhhhhhh. You might try the same number of h's for both the create and the drop.

    Gregory Larsen, DBA

    If you looking for SQL Server Examples check out my website at http://www.geocities.com/sqlserverexamples

    Gregory A. Larsen, MVP

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply