Forum Replies Created

Viewing 15 posts - 18,331 through 18,345 (of 49,552 total)

  • RE: Two hundred and 29 Million rows in the table

    Partitioning is not for performance.

    Please post query, table definitions, index definitions and execution plan, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

    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: Proc Optimization

    Execution plan and the query's waits as a minimum. I'd suggest an extended events session for the waits. Google Jonathan Kehayias extended events waits. He has a post somewhere.

    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: Database Crashed bring back to online?

    Then you may not need to restore at all. See http://sqlinthewild.co.za/index.php/2009/06/09/deleting-the-transaction-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: Database Crashed bring back to online?

    Need more detail. What do you mean by 'crashed'? What's the exact current state of the database? And why are you waiting 3 days before restoring the database?

    Do you 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: What is the difference between "insert" and "insert into?"

    soniarajput1988 (6/1/2012)


    However Insert into is basically used to fatch the data from another table using select command and insert into table where you want to insert the data.

    Insert command...

    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: Missing Index Information DMV.

    If the index is useful, duration usually decreases as well. Just be careful how you're measuring duration. If you use statistics time, that includes any time necessary to compile 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: Guys emergency (database usage is more than 90 %)

    Add more disk space and tune your queries. If you want more detailed answers, please provide a lot more detail on what's wrong.

    For performance problems please post table definitions,...

    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: Rename the instance of the SQL Server?

    No, you can rename the windows server (through Windows) but not the instance 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: Multiply two columns in SQL nd store

    vinu512 (5/31/2012)


    GilaMonster (5/31/2012)


    Why persist it?

    I added it to my code because of the following property of using Persistence:

    - Any update in referenced column will be synchronized automatically in computed column...

    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: Database downgrade: 64 bits to 32

    tilew-948340 (5/31/2012)


    You are telling me that I was wrong thinking like that...

    Yup. The data file and log file structures are dependant on the SQL version, not the processor architecture. I've...

    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: Strange order for returned records, suddenly

    Most likely the data volume changed, the optimiser picked a different plan and since it had no requirement to preserve order it didn't.

    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: Zeroing out bad block?

    May I suggest alternate storage if at all possible...

    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: Zeroing out bad block?

    Maybe, but I wouldn't want to take any chances with this. You don't know for sure that the page is unallocated. If it wasn't allocated, the backup shouldn't be breaking...

    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: Zeroing out bad block?

    If the block belongs to an allocated page, that will cause further corruption.

    What's the error on the backups and what does the following return?

    DBCC CHECKDB (<Database Name>) WITH NO_INFOMSGS, ALL_ERRORMSGS

    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: 'Phantom Table' and how to get rid of it ?

    Someone's been directly updating (or in this case deleting) from the system tables.

    If you're feeling brave... and have taken a backup.

    EXEC sp_configure 'allow updates', 1

    RECONFIGURE

    GO

    UPDATE sysobjects set uid = 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

Viewing 15 posts - 18,331 through 18,345 (of 49,552 total)