Forum Replies Created

Viewing 15 posts - 19,996 through 20,010 (of 49,552 total)

  • RE: Triggers to be avoided? ....

    There are many good uses for triggers and as many bad uses for triggers. The general rule for a trigger is to ensure it's as optimal as possible and does...

    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: is db_executor built in in 2008 sql server ?

    No, that's a custom role in all versions.

    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: Can locks in a table block other tables

    Then something else is causing the queries to run serially, or you have no queries that would block each other. Nothing to do with the lock modes whic, if both...

    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 server becomes slow

    I'd start here:

    http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-1/

    http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-2/

    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 Eliminate 'IN'

    Why do you want to eliminate IN? It's usually more efficient than an equivalent join.

    If srno in IFDetails is nullable, you may want to use EXISTS instead. Also your first...

    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 corruption

    Usually yes. For corruption to fail a backup requires that the corruption is really bad or in a critical area, or that backups are taken WITH CHECKSUM.

    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: Can locks in a table block other tables

    There you go.

    Hints override the default behaviour, so if SQL would by default have started with a table lock, specifying a page lock hint means that the locks start at...

    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: Is it a good idea to shrink a database, after backing up the transaction logs?

    1 - Leave it at 20 GB as it needs to be that size

    2 - Change your indexing so that it doesn't need 20GB of log space (break up index...

    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: HERE I JUST WANT TO WRITE SELECT QUERY FOR A DATE BASE ON CURRENT DATE

    Link works fine here.

    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: Is it a good idea to shrink a database, after backing up the transaction logs?

    No. Once off means just that, one time. A one time, not to be repeated shrink after some unusual activity or problem has caused a file to be far larger...

    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

    Nothing will trigger a checkDB. The only way a checkDB could be running is if it's been run by a user or run from a job.

    You can kill a running...

    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: Problem Moving The Data Files Using Alter DB

    Double check that the path in the system tables and the actual path is identical and that the SQL Server service account has full permissions to the folder.

    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?

    L' Eomot Inversé (2/29/2012)


    nolock will do no harm if there's an absolute guarantee that nothing can be updating the table or inserting into it while the reading is happening, neither...

    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: Transaction id sql server profiler trace

    This isn't going to link child and parent calls, it's just about transactions. Only way it will help is if you start a tran in the outer procedure and then...

    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: Is it a good idea to shrink a database, after backing up the transaction logs?

    Same.

    A once off shrink is ok, if something's happened to increase the file far beyond what's needed. Once off shrinks are ok, whether it's data or log. Scheduled shrinks...

    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 - 19,996 through 20,010 (of 49,552 total)