Forum Replies Created

Viewing 15 posts - 4,576 through 4,590 (of 49,552 total)

  • RE: SQL Instance not taking min memory

    Don't use task manager to check SQL Server's memory. It lies (and I've posted this soooo many times recently)

    Use perfmon, use the target and total server memory counters.

    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: High number of VLFs

    You're not going to see a difference in inserts or restores. See the article I referenced where Tony and I tested the difference between about 20 VLFs and 16000 VLFs...

    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: T-Sql procedure taking hours to execute

    Can't make specific, useful suggestions without seeing the definitions of FTcomparison and returnFlagForTemp, but in general you need to rip those cursors out, convert them and the function calls 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: Any benefit in a covering non-clustered index on clustered index columns?

    The QO will chose the smallest index, so if there's a nonclustered index that's 1 byte smaller than the clustered, that'll be the one chosen. Whether it makes sense 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: High number of VLFs

    You're not going to see much of a difference with a hundred or so VLFs. Try getting up to tens of thousands.

    You see the effect mostly on recovery, when starting...

    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: Masking,replacing Sensitive data in SQL 2008

    Sure. Run update statements to make the required data changes.

    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 deadlock victim

    WhiteLotus (10/7/2015)


    I assume the yellow highlighted is the Victim and the Red one is the culprit ?? But the information that I can read is the object name , No...

    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: t-sql 2012 update statement truncates varchar value

    Can you post create table statements for all involved tables 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: T-Sql procedure taking hours to execute

    Without seeing the code, impossible to give any specific suggestions.

    In general, you probably need to:

    Replace the cursors with set-based queries (and no, don't just replace with a while loop). This...

    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: Listing user created objects

    nm, ignore

    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: Upgrade from sql 2005 sp1 to 2014

    You need SP 4 for an in-place upgrade.

    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 Deadlock

    Please can you get the deadlock graph and post it? Can't diagnose a deadlock on vague descriptions of processes.

    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 deadlock victim

    Grant Fritchey (10/7/2015)


    You're already capturing deadlock information in the system_health extended event session.

    On 2008?

    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: Varchar Vs NVarchar

    Yes. The number in brackets is the number of characters that the column can hold. NVarchar(10) can hold 10 characters, "SQL Server" is 10 characters, so it'll fit.

    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 Deadlock

    Please post the deadlock graph and details of the two queries involved.

    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 - 4,576 through 4,590 (of 49,552 total)