Forum Replies Created

Viewing 15 posts - 39,526 through 39,540 (of 49,552 total)

  • RE: Automated Restore

    Take it offline. If you make the DB single user there's a chance that someone will grab that single connection before the restore starts.

    ALTER DATABASE MyDB SET OFFLINE WITH ROLLBACK...

    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: Code level changes while migration from SQL Server 2000 to SQL Server 2005

    Please ask your DBA to run the upgrade advisor on the database that you want to upgrade. It will pick up most (as I recall) of the issues.

    Also see 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: "Database 'COMMON' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details."

    sharanurampur (4/24/2009)


    I got the solution for that one, its SQL problem, I don't know whether the solution is correct or not,now my database is working fine,

    Mind...

    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: One Backup File on two different Disks

    If you want to split a backup over two devices, you can specify 2 (or more) destinations and the backup will be striped across those. Note that you need all...

    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: who changed Job schedule

    Unless you had a trace running when that happened, I don't believe there's any way to find that information.

    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: Code level changes while migration from SQL Server 2000 to SQL Server 2005

    Have you run the SQL 2005 upgrade advisor?

    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: using sp_execuresql corresponding trigger is not fired.

    Can you post the update statement and the trigger code please?

    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: What is Deadlock

    http://sqlinthewild.co.za/index.php/2008/07/08/what-is-a-deadlock/

    As for timestamp, have a look in Books Online. There's a lot of info on timestamp 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: Understanding execution plan

    fayilt (4/23/2009)


    Did I get that right - if I call DBCC DROPCLEANBUFFERS without calling CHECKPOINT, there is a risk of data loss?

    No, not at all.

    DROPCLEANBUFFERS, as it's name says will...

    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?

    Normalisation?

    http://www.sqlservercentral.com/Forums/Topic703573-149-1.aspx

    It's all yours. I'm headed for bed.

    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

    Sample data?

    Desired output?

    Regarding normalisation, read these -

    http://msdn.microsoft.com/en-us/library/ms191178.aspx

    http://en.wikipedia.org/wiki/Database_normalization

    http://support.microsoft.com/kb/283878

    http://www.databasejournal.com/sqletc/article.php/1428511/Database-Normalization.htm

    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

    Please post table definitions, sample data and desired output. Read this to see the best way to post this to get quick responses.

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    By the sound of it you have 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: Understanding execution plan

    If you want to compare physical reads you need to clear the data cache, not the procedure cache.

    Checkpoint

    DBCC DROPCLEANBUFFERS

    The checkpoint will write all dirty (modified) pages to disk. The DROPCLEANBUFFERS...

    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: Include a column to a already existing Non Cluster Index...

    Naveen Kumar Tiwary (4/23/2009)


    If I am going for a Cluster Index can I include a extra column to that as suggested?

    It won't be necessary. Take a look at the architecture...

    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: Understanding execution plan

    Physical reads = from disk

    Logical reads = from memory

    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 - 39,526 through 39,540 (of 49,552 total)