Forum Replies Created

Viewing 15 posts - 10,411 through 10,425 (of 49,552 total)

  • RE: Dynamic Query issue

    sqlnaive (1/14/2014)


    My question is whether should it work like this or not ?

    Should work. Try printing out the generated dynamic SQL and looking at the one that breaks and seeing...

    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 Restore hystory LOG

    Backup history is in MSDB, in the table BackupHistory, restore history is in MSDB in the table RestoreHistory.

    Mailed notifications you'd have to implement yourself afaik.

    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: File Group and MDF Myth?

    smallmoney (1/14/2014)


    Is it true that you can only have mdf files in the Primary Group?

    No. You could call a database file Readme.txt if you like, SQL won't care. The file...

    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: SQL Server Default Configuration

    None.

    Seriously, don't change anything unless you have a specific reason to change it. Most of the defaults are good. You've already changed max server memory which is one of 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: Are the posted questions getting worse?

    Lynn Pettis (1/14/2014)


    Just verifying that 824 errors usually point to a possible I/O Subsystem issue.

    Almost definite. Something changed values on that page on disk after SQL wrote it out, before...

    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: system databases moving

    Moving TempDB is easy. The other three, not so 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: User AWE to allocate memory

    Chapter 4 https://www.simple-talk.com/books/sql-books/troubleshooting-sql-server-a-guide-for-the-accidental-dba/

    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: Measuring Page Life Expectancy

    Just use max server memory (and if it's not set, set it to a sensible value)

    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: DBCC Checkdb consistency Error on Production Database

    Please run the following and post the full and complete, unedited output

    DBCC CheckDB (<database name>) WITH NO_INFOMSGS, ALL_ERRORMSGS

    Do you have a clean backup and an unbroken log chain from 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: Error: 5133 when i attach database!

    The path you've specified for the mdf file doesn't exist

    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: Read Dirty Data in Read-Commited Snapshot Isolation?

    Use the nolock hint or read uncommitted isolation level (same thing). Any queries running under that isolation level read the dirty (uncommitted) 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: User AWE to allocate memory

    It's only necessary for 32 bit. If you're still running 32 bit SQL now, it's well past time to reconsider and install the 64 bit version instead

    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: dynamic SQL issues

    mxy (1/13/2014)


    our application uses lot of dynamic sql, since sql cannot reuse the execution plan

    Why can't SQL reuse the execution plans?

    If you're properly parameterising your Dynamic SQL (necessary for...

    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 was Unavailable

    Yes, it will be usable.

    Maybe speak with whoever is responsible for the SAN, they'd know the most about it. Or contact the storage vendor

    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 differentiate between two tables sharing the same name but belonging to different databases

    The only time I'll use three-part naming is when I know that I need to be crossing databases. Otherwise 2-part naming's fine.

    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 - 10,411 through 10,425 (of 49,552 total)