Forum Replies Created

Viewing 15 posts - 18,781 through 18,795 (of 49,552 total)

  • RE: Disk space when varchar to nvarchar change

    If you use this method, you can calculate nonclustered indexes as well, much the same way.

    GilaMonster (4/24/2012)


    A quick way to do this might be to calculate the average row length...

    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: Commit - rollback

    opc.three (4/25/2012)


    GilaMonster (4/25/2012)


    opc.three (4/25/2012)


    Yes. If the error was such that it left the transaction in a state where it cannot be rolled back

    A transaction can never be in a state...

    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: Isolation Level

    jitendra.padhiyar (4/25/2012)


    Non-Repeatable reads: Rows that disappear are non-repeatable reads.

    That means same rows but data will be chagned.

    Deleted or updated. So you could run the same query twice, get 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: Commit - rollback

    opc.three (4/25/2012)


    Yes. If the error was such that it left the transaction in a state where it cannot be rolled back

    A transaction can never be in a state where 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: Commit - rollback

    durai nagarajan (4/25/2012)


    If it comes to catch wont that be definitely error.

    Yes it will. Control only passes to the catch block when an error happens.

    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: Isolation Level

    To explain, in repeatable read isolation level, shared locks are held until the transaction commits or rolls back. So when the delete comes along and tries to delete a row...

    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: Isolation Level

    http://en.wikipedia.org/wiki/Isolation_%28database_systems%29

    Phantom reads

    A phantom read occurs when, in the course of a transaction, two identical queries are executed, and the collection of rows returned by the second query is different from...

    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: Isolation Level

    jitendra.padhiyar (4/25/2012)


    If I read one transaction, after that some one will modified transaction. And when I read that same transaction again, the result will be different from my first read...

    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: Isolation Level

    GSquared (4/25/2012)


    Unrepeatable example: Update Joe's last name from Smith to Smithe between reads. Different data, same rows.

    Phantom Rows: 5 rows one time, 4 or 6 the next time.

    6 or...

    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?

    GilaMonster (4/25/2012)


    Yet another topic shift...

    If anyone's willing to offer suggestions, I'm looking for examples of two things:

    Query optimisation/query execution myths (for a blog post series). Things like implicit conversions always...

    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?

    Nested trans is certainly an idea...

    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: Isolation Level

    Dirty reads (possible only in read uncommitted isolation level):

    Read data that is subsequently rolled back and was never part of the durable contents of the database. Eg

    Begin transaction

    update Employees set...

    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?

    Yet another topic shift...

    If anyone's willing to offer suggestions, I'm looking for examples of two things:

    Query optimisation/query execution myths (for a blog post series). Things like implicit conversions always cause...

    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: Odd behaviour in a trigger

    GSquared (4/25/2012)


    The inserted and deleted tables behave a little differently than regular tables. No indexes, for one thing. No stats. So querying them can be a performance...

    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: Faultfinding possible I/O issues

    TheSQLGuru (4/25/2012)


    GilaMonster (4/25/2012)


    TheSQLGuru (4/25/2012)


    SQLIOSIM is the tool to use to validate that an IO subsystem will properly handle SQL Server IO-style workloads.

    But SQL needs to be stopped when running that....

    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 - 18,781 through 18,795 (of 49,552 total)