INSERT Error?

  • select * into dbo.Revmulti from Stage_Revmulti.dbo.doubleRev where 1=0

    when i run the aboe query i get this error

    Msg 262, Level 14, State 4, Line 1

    SHOWPLAN permission denied in database Stage_Revmulti'.

    I am not sure what SHOWPLAN has to do with my insert?

  • You must have show exectution plan option turned on, turn this off and this query should run fine.

    its also worth noting that

    where 1=0

    means that your query will never return any rows since 1 will never equal 0

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

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