Forum Replies Created

Viewing 15 posts - 20,566 through 20,580 (of 49,552 total)

  • RE: I am getting deadlock between two stored procedures.

    Well there's your problem right there.

    You need to analyse and add primary keys. My guess would be MailMergeFile should be on MailMergeID and MailMergeWorkItem on MailMergeID and WorkItemID, but that'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: I am getting deadlock between two stored procedures.

    Indexes on those tables? Primary key?

    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: Need help in writing the query

    Ow, that's probably the slowest of all of the options that the article discussed, and the article even stated:

    Because they are generally resource intensive, procedural and inefficient, one should strive...

    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: Stand Alone Database Server

    The installing of SQL on a standalone server is the easy part. You'll need to restore backups of all the databases, configure all logins and server-level permissions, change the connection...

    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 am getting deadlock between two stored procedures.

    Please post the code for the procedure UpdateMailMergeStatus and the definition of MailMergeFile with all indexes

    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: Need help in writing the query

    Did you read the article? There's lots of ways listed and covered in that and lots of sample code. CTE is far from a requirement.

    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: SAN related performance issue, though low disk queue length

    bram.krol (2/5/2012)


    Disk latency (read) on the fast SAN is an average 7 ms, on the slower SAN average 32 ms.

    Yup, definitely a disk latency problem. Where and why is a...

    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: Need help in writing the query

    Lots of ways.

    http://www.simple-talk.com/sql/t-sql-programming/concatenating-row-values-in-transact-sql/

    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: Deleting huge number of Records

    All 5 million, not keeping any rows at all?

    If so:

    TRUNCATE TABLE <table name>

    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: Max Query Cost per User?

    johnitech.itech (2/6/2012)


    ok check below link pls

    http://stackoverflow.com/questions/71022/sql-max-of-multiple-columns

    What exactly does the link have to do with the question? The question is about restricting query costs, the link is about finding the max...

    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: FCB::Open Failed Error

    No, take offline and bring online (the DB) should be enough.

    Question is, why are the permissions wrong? NTFS doesn't just randomly change folder permissions, so something's happened or someone's been...

    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 in Updating an exception table

    jcb (2/6/2012)


    Gail solutions is the more elegant (as usual) but works only in MSSQL Server 2008.

    Which, since this is posted in the SQL 2008 forums is probably not a problem.

    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: Key Lookup(Clustered)

    What exactly do those have to do with a key lookup?

    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 Log file size issue

    rajg (2/6/2012)


    Tee.M - if I backup log file and shrink it - it should free some space right ? Ideally how much time it will take shrink 79 GB...

    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: TRUNCATE TABLE and ROLLBACK TRAN

    Given the distribution of answers, I'm considering a followup question - "does recovery model ever affect the ability to rollback transactions?" because it appears way too many people don't understand...

    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 - 20,566 through 20,580 (of 49,552 total)