Forum Replies Created

Viewing 15 posts - 21,511 through 21,525 (of 49,552 total)

  • RE: Database in 'Recovery Pending' State -Error 945

    Vertigo44 (12/29/2011)


    Now, what I am wondering is that if I run checkDB with the repair_allow_data_loss option, how much data will I loose?

    Anywhere between nothing and everything. Seriously, there's no way...

    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: start date and end date

    Err, you wouldn't. Why would you want to load them into a temp table?

    I've used a table variable to show the concept, because I don't have your table, so I...

    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: start date and end date

    DECLARE @Tbl TABLE (

    UserName VARCHAR(100) ,

    DateTime DATETIME ,

    Action VARCHAR(50)

    )

    INSERT INTO @Tbl ( UserName , DateTime , Action)

    VALUES

    ('abc','2011/01/22 23:45','xyz'),

    ('abc','2011/01/23 10:00','pqr'),

    ('abc','2011/01/24 12:00','zxc'),

    ('abc','2011/01/24 13:00','fgh'),

    ('def','2011/01/24 15:44','gpr'),

    ('ghi','2011/01/24 16:00','klm'),

    ('abc','2011/01/25...

    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 Usage in SQL SERVER 2008

    @ry@n (12/29/2011)


    I just need to see how the data is getting stored in the form of B-Tree.

    Maybe have a read through this series:

    http://www.sqlservercentral.com/articles/Indexing/68439/

    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 find DB changes ??

    Bhuvnesh (12/29/2011)


    If the changes are at schema level then those can be traced with the help of DDL trigger. but neither Gail nor GSquared mentioned it.

    Did i overlook something...

    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: Question on index column ordering

    Nope, it makes no difference and it hasn't likely since SQL 6.5 or 7, whichever one introduced the cost-based optimiser.

    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: Locks

    In short, to maybe clear things up a little.

    If SQL has to take an X lock on a row, it does the following:

    Take an IX lock on the 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: Locks

    Rich Weissler (12/28/2011)


    There is an Update (U) lock which is explained as a Shared (S) lock, where an Exclusive (X) lock is anticipated. (I'm getting this definition from "Microsoft...

    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: 8hr hour query ?!?!?!?!?!?!?!

    Fraggle-805517 (12/28/2011)


    I can and will to test it, but why? Wouldn't that essentially be the same as the Clustered Index except the columns are reversed?

    Yes, except much...

    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: duration of Microsoft cert validity

    lkokeunda (12/28/2011)


    If you can claim certified status beyond exam retirement, then I think that definitely paints different picture in worth of certifications and their cost because you can claim certification...

    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: duration of Microsoft cert validity

    That quote's correct. The certs are retired, anyone who has them can still claim them, they just can't be written any longer.

    My official exam transcript from MS still lists my...

    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: 8hr hour query ?!?!?!?!?!?!?!

    Could you try changing the index Test to a unique index on ContactId, ContactGroupId and see what the execution time (with and without parallelism) looks like?

    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 find DB changes ??

    GSquared (12/28/2011)


    Without some sort of auditing mechanism in place, can you think of another way to get "who changed my data"?

    No, and if it was a sysadmin, the log 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: How to find DB changes ??

    GSquared (12/28/2011)


    I think ApexSQL and Lumigent produce log parsers.

    At around $1000 for a single license.

    RedGate used to, but I don't think they do any more.

    They have one for SQL 2000...

    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: Using (Updlock,Rowlock) in Select statment

    MyDoggieJessie (12/28/2011)


    We have a lot of that same logic (using updlock/rowlock) riddled throughout our 3rd party code (coreCARD) and it's there because of the way the transactions are being processed....

    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 - 21,511 through 21,525 (of 49,552 total)