Forum Replies Created

Viewing 15 posts - 24,781 through 24,795 (of 49,552 total)

  • RE: Performance issue using a variable

    http://sqlinthewild.co.za/index.php/2008/02/25/parameter-sniffing-pt-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: Suspect mode database

    No, it won't be SQL patches. It might be hardware problems.

    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: sp_dboption

    I tested it and it works. Just watch that the forum converted > to > (and that will give an error). Fixed now. If you have that, either copy again...

    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: sp_dboption

    Jannie-186227 (7/20/2011)


    exec sp_msforeachdb 'use [?]

    if db_name() not in (''tempdb'')

    begin

    alter database <> set read_only

    end'

    however, there should be no active connections.

    Cheers

    Jannie

    I don't think you want to try setting the system databases...

    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: Suspect mode database

    Check the SQL error log, there will be messages in there saying why SQL marked the database suspect.

    You've probably got some hardware problems, check error and event logs for your...

    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: I am configuring the backup of all the databases using Maintenance Plans.

    select 'test_backup_' + year(getdate()) + '_' + month(getdate()) + ....

    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: Creating Index taking huge storage

    Jannie-186227 (7/20/2011)


    Make sure your tempdb is on the default 8mb growth.

    Then add the sort in tempdb and maxdop to your index build.

    Is or isn't? The default tempDB size and growth...

    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 can't be recovered? Any help would be appreciated!!!

    Ninja's_RGR'us (7/20/2011)


    DBCC CHECKDB('CheckListDB') WITH NO_INFOMSGS, ALL_ERRORMSGS

    halifaxdal (7/20/2011)


    success!

    What's the next step? Thanks.

    Err, there's no way CheckDB can run clean normally if the run with repair fails. Did you run it 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 can't be recovered? Any help would be appreciated!!!

    Who said anything about sp_resetstatus?

    Is that the DB's name? Is that the name that appears in the list? Are you running queries on the same server as that list of...

    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 can't be recovered? Any help would be appreciated!!!

    p.s. I seriously hope you're not doing this on a production server... It's insanely risky to do something like this on any server of importance.

    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 can't be recovered? Any help would be appreciated!!!

    And that's the 2000 server?

    If so...

    allow updates

    update sysdatabases, set that DB's status to 32767

    see if the DB can be queried.

    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 in Shutdown Status

    Either. No difference 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: Database in Shutdown Status

    Restore from backup. Log file missing, database not cleanly shut down.

    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 can't be recovered? Any help would be appreciated!!!

    ZZartin (7/20/2011)


    set allow updates on and then update sysdatabases and set the status to 36767 for that database.

    Sorry if this is slightly off topic but isn't modifying system tables...

    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 can't be recovered? Any help would be appreciated!!!

    Ninja's_RGR'us (7/20/2011)


    ... unless one of the connection is not a sysadmin... or maybe the owner of the db is missing and that somehow blocks in the permissions.

    You have 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

Viewing 15 posts - 24,781 through 24,795 (of 49,552 total)