Forum Replies Created

Viewing 15 posts - 24,721 through 24,735 (of 49,552 total)

  • RE: Locked Tables

    Before you go that route...

    Nolock means potentially incorrect data. Not just dirty reads but also duplicate rows and missed rows. If those reports just have to be mostly accurate 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: How to increase dynamically SQL server log file size

    christhurajsacraj (7/25/2011)


    Can't we dynamically increase the size or can't we clear the log file size

    or can't we create other log file as the current log file gets filled.

    First you...

    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: check Extent for a table

    Sure. Undocumented and unsupported...

    http://sqlskills.com/BLOGS/PAUL/post/Inside-the-Storage-Engine-Using-DBCC-PAGE-and-DBCC-IND-to-find-out-if-page-splits-ever-roll-back.aspx

    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 increase dynamically SQL server log file size

    Jayanth_Kurup (7/25/2011)


    Log file automatically shrink after a backup and release unwanted spaces back

    No it does not. A log backup just marks 0 or more VLFs within the log 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: transaction log almost full

    sqlfriends (7/24/2011)


    When you say bulk-logged recovery, I guess during the weekend maintence job, I can first change from full to bulk-logged recovery, then do the reindex, then change it 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: dynamic update,insert,delete with sp???

    ramsin1340 (7/24/2011)


    Puzzle: how is the insert, update, delete as Stored procedures with input parameters as a table name and a string value that we're info to implement it?

    Really, really...

    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 log almost full

    sqlfriends (7/23/2011)


    We really don't need to log the reindex process.

    Yes you do, because if it wasn't logged and a rebuild failed for any reason (out of space, cancelled, server restart)...

    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: rrebuilding indexes by one connection and select or update statements by other connection on the same database work?

    Mathew M.Varghese (7/24/2011)


    It create a dead lock between re-index table and update or select table.

    Blocking, yes. Deadlocks, it shouldn't

    but you can reduce the load to change the DB to simple...

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

    The pages of the snapshot however are not an entire database. The only pages in a snapshot are pages that had changed in the source DB since the snapshot's creation.

    To...

    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: Insert with id of inserted row

    http://msdn.microsoft.com/en-us/library/ms177564%28v=SQL.100%29.aspx

    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: Deleting a log file

    Make sure no portion of the active log is in the second file, and ALTER DATABASE DROP 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: How to Sync SS 2008 R2 Production database with different versions of SQL server (2005, 2008)

    It'll work, you just have to be sure you've got no 2008-specific features (no DATE, no TIME, etc)

    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 Procedure Statistics

    Don't use Profiler to a table unless you want serious performance impact and potential problems. It's the profiling method with the highest impact, worst overhead. It's possible to crash a...

    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: Why is the sum of allocation_units always less than the physical mdf file size?

    You're not counting allocation pages with that (GAM, SGAM, ML, DIFF, PFS). Not sure offhand if IAM pages count in sys.partitions.

    Are you counting LOB space?

    Plus there will be free space...

    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: Find queries that generate user seeks on missing index DMV's

    No, there's no DMV you can join to to get the query text. The optimiser just drops the missing index info in there, it doesn't tie it to a query.

    If...

    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 - 24,721 through 24,735 (of 49,552 total)