Forum Replies Created

Viewing 15 posts - 7,621 through 7,635 (of 49,552 total)

  • RE: Login Trigger Causing Deadlocks

    Stamey (10/3/2014)


    Here are three images. Is this what you need?

    No, or I'd have asked for pictures of the deadlock graph 😉

    https://www.simple-talk.com/sql/performance/sql-server-deadlocks-by-example/

    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: AlwaysOn Secondary Database is Suspect

    Re-do the secondary from a fresh backup

    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: Login Trigger Causing Deadlocks

    Stamey (10/2/2014)


    What do you expect here?

    The deadlock graph, the entire thing. Without being able to see exactly what objects, indexes, locks, statements, etc were involved in the deadlock, 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: Ranking

    nm.

    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: Summing Logical Reads Each Day for a Server

    john.petrey (10/2/2014)


    I am using sys.dm_exec_query_stats summing the Physical and Logical Reads. Is this a viable option for gathering this metric?

    No. That DMV shows the total logical reads...

    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 change collation on sysdiagram to default collation of database ?

    Yes... By doing nothing.

    Go have a look at the sysdiagrams table. Are there any columns in there that have a collation defined at all?

    Hence why I'm wondering why someone has...

    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 change collation on sysdiagram to default collation of database ?

    farzad.jalali (10/2/2014)


    GilaMonster (10/2/2014)


    Why do you need to?

    it's a task's requirement which is assigned to me .

    Ok, why reason did the person assigning to have?

    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 Design with Load Balancing and Failover

    If you're already having capacity problems, then consolidation is probably not a good idea. Consolidation is great for when you have multiple databases on different servers and those servers are...

    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: Login Trigger Causing Deadlocks

    Can you post the deadlock graph?

    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 change collation on sysdiagram to default collation of database ?

    Why do you need 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: Nightly Job Failing to Truncate Transaction Log

    doug.davidson (10/1/2014)


    step 3: Truncate Transaction Log

    DBCC SHRINKFILE (N'X_log' , 0, TRUNCATEONLY)

    Firstly, the comment is wrong. That doesn't truncate the log. The TruncateOnly option is only valid for data files, 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: Table Execution taking time?

    And how many rows are in that table?

    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: index was out of range. Must be non-negative and less than the size of the collection.

    That's a .Net error. What were you doing when you got it?

    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: The database cannot be opened because it is version 706. This server supports version 661 and earlier

    enriquemallon (10/1/2014)


    Today I was trying to attach a database in SQL server 2008 R2.

    Databases cannot be downgraded, you need to attach it to SQL Server 2012 or SQL Server 2014

    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: Table Execution taking time?

    What do you mean 'one table takes time to execute'?

    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 - 7,621 through 7,635 (of 49,552 total)