Forum Replies Created

Viewing 15 posts - 18,916 through 18,930 (of 49,552 total)

  • RE: 2005 Enterprise Edition - SP3...Database 'In Recovery' after restarting MSSQLSERVER Service...

    Rich Yarger (4/20/2012)


    I wound up with about 7gb free space, and figured it was from the system ldf's (because I didn't wind up deleting anything from that partition - there...

    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: Ad hoc update to system catalogs is not supported

    You cannot change the system tables in SQL 2005 or above. Fix whatever it is in your script that's trying to update the system tables and run sp_configure to set...

    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: 2005 Enterprise Edition - SP3...Database 'In Recovery' after restarting MSSQLSERVER Service...

    But, why restart? Unless it was TempDB's log, restart would do nothing. Could have just killed the active processes & manually shrunk the user DB's 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: Suggestions for a very long transaction

    If it's a once-a-day thing and it's at the same time every day then chances are there is something else running at that time causing blocking.

    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: 2005 Enterprise Edition - SP3...Database 'In Recovery' after restarting MSSQLSERVER Service...

    Rich Yarger (4/20/2012)


    I honestly had never seen it do that before when restarting the service.

    It usually takes seconds at best

    Good news is that it looks to be in...

    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: Restored a DB from SQL 2000, now SQL can't shrink/find log

    DBCC ShrinkFile (2, 1000)

    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: Restored a DB from SQL 2000, now SQL can't shrink/find log

    Are you running it in the correct database?

    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: Suggestions for a very long transaction

    Wait, what?

    We've given you suggestions

    Check for blocking, see what's causing the blocking, see if it can be minimised.

    Trace the queries, see where the problem is

    Post the code and the indexes...

    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: Restored a DB from SQL 2000, now SQL can't shrink/find log

    DBCC ShrinkFile ('NewArchiveData_log', 1000)

    That'll try to shrink the log to 1GB.

    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 Mirroring a disaster recovery option at all ?

    SQL Native Access Client.

    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: Restored a DB from SQL 2000, now SQL can't shrink/find log

    Query sys.database_files and post the name, filename, id and type of all the files in there.

    Do Not delete the log file. It can leave the database unusable.

    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: Suggestions for a very long transaction

    S_Kumar_S (4/20/2012)


    Paul

    We'll see if changing that to say,3 days, helps.Of course we'll first check how much the deframentation is.

    It's not going to help inserts. Fragmentation only slows down large range...

    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 Restoring database larger then 40 GB

    Assuming there's enough space, is there an anti-virus on the machine? If so, does it have the correct exclusions for all SQL files? (mdf, ldf, ndf, bak, trn)

    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: Suggestions for a very long transaction

    S_Kumar_S (4/20/2012)


    1.defrag indexes more frequently after checking how much they are fregmented.Currently they are rebuild weekly.

    Fragmentation won't slow down inserts, so this will likely do nothing

    2. Increase CommandTimeout to 40s...

    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: Suggestions for a very long transaction

    S_Kumar_S (4/20/2012)


    I am planning to trace it. Since I don't have direct access to this server, I'll need to send the trace to someone to run it.

    One question: What can...

    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,916 through 18,930 (of 49,552 total)