What is the result of the following query

  • Thanks for the question, I have run into this before so I knew it right away.

  • Hugo Kornelis (12/10/2010)


    (plus, that one is extremely unlikely, as the database for temporary object is called tempdb, not TempDB - but I guess only people who are in the habit of developing on a case sensitive instance would know that).

    No, the case sensitivity makes no difference to the message displayed so even people like me who never use a case-sensitive instance are used to seeing "tempdb" in messages, and never "TempDB".

    Tom

  • Good question. Sometimes it is easy to miss small things and this type of questions will help us to keep up with the tips and tricks.

  • good basic question.

    Declare @strSql varchar(2000)

    Set @strSql = ''

    Set @strSql = @strSql + 'Create table #tmp (id int)'

    Set @strSql = @strSql + 'Insert into #tmp(id) values (1) Select * from #tmp'

    Exec (@strSql)

    [font="Calibri"]Raj[/font]
  • Thanks for the question.

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • Very interesting question. Thank you!

  • Good Question.

    Thanks
    Vinay Kumar
    -----------------------------------------------------------------
    Keep Learning - Keep Growing !!!

Viewing 7 posts - 16 through 21 (of 21 total)

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