Results 1 to 2 of 2

Thread: SQL Query

  1. #1
    Join Date
    Aug 2002
    Posts
    7

    Post Unanswered: SQL Query

    declare @TableName as varchar(50)

    set @TableName = 'RAJTEST'

    drop table @TableName

    I can not make this to work ?????

  2. #2
    Join Date
    Dec 2001
    Location
    Toronto, Canada
    Posts
    335
    declare @TableName as varchar(50)

    set @TableName = 'RAJTEST'

    EXEC ('drop table ' + @TableName)
    MCDBA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •