Forum Replies Created

Viewing 15 posts - 25,096 through 25,110 (of 49,552 total)

  • RE: A general question on non clustered index

    S_Kumar_S (7/7/2011)


    Select B,C from table_A, then is it always guarenteed that that my resultset will be sorted by B,C?

    No

    i am actually asking , does non clustered index sorts the data...

    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: Log backup

    No.

    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: Delete Query and 'Transaction Log is full' Error

    rfrancisco (7/6/2011)


    One thing you can do is to shrink your log file. Since your recovery mode is Simple, you should be able to shrink the size of your log...

    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: Lock escalation

    It will stay a table lock. SQL escalates to reduce the resources required. It's not going to go and undo that and go back to the high resources used 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
  • RE: Data Corruption...

    What repair command did you run?

    As I said, to fix those you will need to run CheckDB with repair_allow_data_loss. It will lose data but by this point that can't be...

    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: Stored Procedures with multiple options using an @action parameter

    Commenting on an earlier post...

    Execution plans are generated for the entire procedure first time it runs based on the parameter values on that execution.

    http://sqlinthewild.co.za/index.php/2009/09/15/multiple-execution-paths/

    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: What happens to SQL Server when we shut down/Start Windows..?

    Yup.

    Tested it. Open transaction with a couple million rows changed. Controlled shutdown (from within SQL ran the SHUTDOWN command). SQL shut down fairly fast, the transaction was rolled back...

    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: What happens to SQL Server when we shut down/Start Windows..?

    I've already said it at least twice in this thread.

    Long running uncommitted transactions.

    Depending how long they've been running such a transaction could take hours or longer to roll back....

    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: List all indexes on an instance

    kingrudedog (7/6/2011)


    The level of awesomeness is rediculous...

    Apologies. We'll try to tone the awesome level down to crazy or below for you. :hehe: 😀

    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: List all indexes on an instance

    The usage stats can't be explicitly cleared (it's the wait stats and one other only that can)

    But yes, the usage stats show indexes used since that database last started up....

    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: List all indexes on an instance

    It's not hard.

    1) Decide what the temp table must look like and write a CREATE TABLE.

    2) Write a query that, for one database, gets the database_id, object_id, index_id, index 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: List all indexes on an instance

    One way is to define a temp table, then use sp_MSforeachDB to run a query in each database on the instance to insert DB_ID, Object-ID, Index_ID and Index_name into 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
  • RE: Delete After Trigger

    Shouldn't be a security issue. Those cause visible errors.

    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: Delete After Trigger

    toddasd (7/6/2011)


    GilaMonster (7/6/2011)


    There are no other triggers on either table? Absolutely sure of that?

    Exactly. There has to be an INSTEAD OF INSERT trigger on the archive table. Lowell and 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: Today's Random Word!

    Bliss (as in working from home mostly again)

    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 - 25,096 through 25,110 (of 49,552 total)