Forum Replies Created

Viewing 15 posts - 10,291 through 10,305 (of 49,552 total)

  • RE: SEQUENCE vs GUID across tables - uniqueness?

    JustMarie (1/22/2014)


    Thanks Kraig. That's exactly the kind of thing I needed to know to help make the decision. I was looking at uniqueness and contention didn't come to...

    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: Log File Size does not shrink

    Welsh Corgi (1/22/2014)


    Another backup, that log file has not changed in size.

    No, it won't. Log backups do not shrink the file. Though, if it hasn't changed in size that means...

    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: Query for top 10 CPU utilization

    satish.saidapur (1/22/2014)


    Hi Gail,

    Same query using which i shared, could you current me if i wrong or advice me which query shall i use..

    The query you...

    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: Log File Size does not shrink

    Log backups don't shrink the log, they're not expected to shrink the log. They mark the space within the log file as reusable. What you describe is normal and expected.

    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: Query for top 10 CPU utilization

    That query does not get you the top 10 CPU-using queries.

    It gets you a (fairly meaningless) set of the top 10 wait types. I say meaningless, because it hasn't...

    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: I try to create one index but it went to suspended mode need help to run this query successfully

    Suspended just means it's waiting for something, probably a lock or IO. Be patient.

    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: Log File Size does not shrink

    You shouldn't even be shrinking the log. If the log is growing, make the log backup more frequent or identify what is causing the log growth and resolve it.

    btw, going...

    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: how to avoid sub queries and FUNCTIONS in where clause ?

    Have you confirmed that the subquery, function on a constant and conversion in the select are the causes of the poor performance?

    If you haven't, then making the changes you request...

    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: How to optimize case statement

    thbaig1 (1/17/2014)


    Hi,

    I have several rule on my item name to compute its gender. I know this structure might need to tune , but currently can't change:(

    I wrote sql and its...

    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: Rank over with Clustered Index

    Clustered indexes over multiple columns isn't usually a great idea. What are you trying to achieve?

    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: Log File Size does not shrink

    What is the exact command you are using to backup the log (or if a maintenance plan, what are the exact options)?

    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 INTO vs. Creating a table

    mario17 (1/21/2014)


    While doing INTO you lock tables fro the whole duration of your query.

    While loading result into pre-allocated is not, (or significantly decrease locking time)

    That was fixed in SQL 7...

    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: transaction blocking

    Selects do not take exclusive locks unless there's a locking hint and they do not hold locks until the end of the transaction unless there's a locking hint.

    Sure it's...

    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: transaction blocking

    In the default isolation level shared locks (from selects) are held no longer than the end of the statement. Exclusive locks (from data modifications) are held until the end of...

    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 INTO vs. Creating a table

    Insert ... Select can also be minimally logged.

    Though how much it matters with temp tables which don't log redo information as it it (which is most of what's different between...

    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 - 10,291 through 10,305 (of 49,552 total)