Forum Replies Created

Viewing 15 posts - 47,461 through 47,475 (of 49,552 total)

  • RE: Help with speeding up a query causing timeouts.

    Looks like you've mostly got it under control.

    Regarding those 3 older indexes, and looking at what you've said, I'd suggest the following.

    nclidx_JOBS_Live_TempMode_FeatureScore - Change to Live, TempMode, SiteFK, LiveDate,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: error in parameterized query

    Please do not cross post. It wastes people's time.

    Please direct replies to the following thread -

    Error in parameterised query (SQL 2000)

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SELECT distinct..... order by newid()

    Not exactly. The OP admits that he posted in the wrong forum initially and reposted in the 2000 forum after you replied.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SELECT distinct..... order by newid()

    Since this was reposted in the SQL 2000 forum, please direct replies there.

    Select distinct.. order by newID() (SQL 2000)

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL Sever Hangs

    Is that error written into the SQL error log? What's the message that you get?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: What Query?

    Could you post the code that you're using for the time calculation please. Along with any tables that it uses, sample data and expected output.

    See http://www.sqlservercentral.com/articles/Best+Practices/61537/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Help with speeding up a query causing timeouts.

    Rob Reid (2/4/2008)


    which I created a non clustered index with ClientFK,JobFk,Live (in that order)

    I then replaced the COUNT(JobPk) with COUNT(*) and dropped the JobPk

    Looks pretty good. If you had left...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: What Query?

    With the table structure you've given, there's no way to tell 100% which days are holidays. It's easy to tell which days are not work days (SELECT dt FROM Calender...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL server starts slow

    You're getting stack dumps and hung schedulers. I would suggest you contact PSS (microsoft product support) and log a case with them.

    I doubt this is anything that we can...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Look-up Table (24ms vs 5ms)

    And one thing to note about the procedure cache is that only one session may put a specific proc in the cache at a time.

    If you have multiple users recompiling...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: sqljob

    What problems are you having?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Help with speeding up a query causing timeouts.

    Could you post that other query please Rob?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: What Query?

    Could you give the expected output please?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: store procedure

    I'm not sure I fully understand your question. What does the code you've written do that it's no supposed to do, or not do what it's supposed to do?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Store procedure

    Please don't cross post. It's not necessary, the regular's read all the forums. It also fragments replies and wastes people's time.

    Discussion to the following thread please - http://www.sqlservercentral.com/Forums/Topic451025-338-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 47,461 through 47,475 (of 49,552 total)