Forum Replies Created

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

  • RE: Careful with table name alias

    saranya.megalai (5/14/2010)


    if flag is alias then can we use next statement like

    select [flag='y'].some_data from [where]?

    Yes it would look like:

    Select [flag ='y' ].some_data from [where] [flag ='y' ]

  • RE: Query Compile Time Varies Between Instances

    Nope we had tried statistics and I updated all stats with fullscan. Still no effect.

  • RE: Query Compile Time Varies Between Instances

    I'm done looking at the SQL Server side. I've looked at the code and we definitely have some inefficiencies where we are executing the query more than is necessary....

  • RE: Query Compile Time Varies Between Instances

    I did a test on the prod box. I shut down the SQL 2000 instance so that all the machine resources would be available to the SQL 2005 instance...

  • RE: Go go go?

    Actually that's what puzzled me. BOL says that GO is not a T-Sql command but a command recognized by Sqlcmd, Osql, and the SSMS Code Editor. It also...

  • RE: Go go go?

    Here's my interpretation of what happens. Note if you select and execute the lines by themselves you get different results than you do if you combine them into a...

  • RE: Question of the Day for 03 Jan 2006

    Note the USER_ID function will also be removed in a future version according to the SQL Server 2005 Books Online.

  • RE: SQL Server Spotlight Euan

    Great interview Steve.  I'm looking forward to the others!

  • RE: Instead of Trigger to handle dup keys

    Grasshopper,

    Ahh! I couldn't see it for anything.  What I meant was not what I typed.  I wanted the difference like what follows:

    Create trigger dbo.bkiTriggerTest_Instead

          on dbo.bkiTriggerTest

          INSTEAD OF INSERT

       AS

      ...

  • RE: Instead of Trigger to handle dup keys

    Gopal (ext5qxt)

    If I test for @@ROWCOUNT equal to zero, then I won't execute the second insert when there are dups.  But I want to execute both statements because there may...

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