Forum Replies Created

Viewing 15 posts - 24,136 through 24,150 (of 49,552 total)

  • RE: Help with SQL code

    Stick an alias on the subquery (just add AS Sub after the close of the bracket for the subquery)

    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: Alternative for KILL

    No.

    A rollback HAS to complete or your database is structurally and transactionally inconsistent (ie Suspect). There is no way to avoid or abort a rollback.

    That 0 seconds, 0% often 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: Deadlock Info from T1222 Lacking

    opc.three (8/15/2011)


    I read a post on SSC earlier today, which of course I cannot find now, that talked about the spid in the graph possibly being the deadlock monitoring spid,...

    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: Deadlock Info from T1222 Lacking

    Always a pleasure. 😀

    There is a workaround - OPTION (MAXDOP n) on that query where n is some number less than the cores you have (drop it until it deadlocks...

    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: Deadlock Info from T1222 Lacking

    There's only info on one process because there's only one process involved in that deadlock. Look through the deadlock graph, the spid is 63 on every single one.

    What this is...

    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: Sys process.

    No.

    All you are seeing is the execution. That's it, nothing more.

    The sys.dm_exec_sql_text returns the full create statement of the procedure so that you can do things like substring with...

    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: Looking for tables with no data

    sysobjects and sysindexes are deprecated, should not be used for new development, will be removed in a future version of 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: Are the posted questions getting worse?

    Steve Jones - SSC Editor (8/15/2011)


    However I worked in IT as an intern. At a time when most of my friend made $5/hr or so, I was making $12 along...

    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: Looking for tables with no data

    select object_name(object_id) AS TableName, rows

    from sys.partitions

    where rows = 0 and index_id in (0,1)

    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: Are the posted questions getting worse?

    Stefan Krzywicki (8/15/2011)


    He doesn't like tech and doesn't even know how to use Excel. He thinks he'll get enough money to live like a king.

    And thinks he's hot enough 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: Sys process.

    What you're seeing is the procedure executing. Sys.dm_exec_sql_text shows the create statement (and the entire contents) when the proc runs. This is so that you can use the stmt_start and...

    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: Are the posted questions getting worse?

    Hmm, I can pick up 4 x 1 TB drives for around $300. RAID 5 config, 3TB internal. Should last for a while.

    Or I can get 4 x 1.5...

    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: logical reads count when specifying filter in join vs where clause

    Those two queries are not equivalent, under many circumstances they'll return different data. Hence it's not a question which is better, it's a question which one returns the data 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: Are the posted questions getting worse?

    Tom.Thomson (8/15/2011)


    Laptops with a TB of internal storage have been available for more than 3 years now; things have moved on and 1TB internal is seen in notebooks these days,...

    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: Are the posted questions getting worse?

    There's a good hardware/game shop near where I live, I order almost all my hardware through them. Not quite dealer price but they're cheaper than the major retailers and the...

    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 - 24,136 through 24,150 (of 49,552 total)