Forum Replies Created

Viewing 15 posts - 46,066 through 46,080 (of 49,552 total)

  • RE: long running quries

    Find what is making them run long and fix it.

    Seriously now. First you need to identify why the query is running slow. Is there blocking? Are there excessively long waits?...

    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 problems

    Excellent.

    If you find there is data you can't recreate, post again here and I'll try and help you salvage as much as possible from the DB.

    You may also want 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: Advice for beginner

    Have you seen the case statement before?

    select datepart(ww, created_date) as week, count(*) as count,

    CASE created_as

    WHEN 'true' THEN 'Some String 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: Transaction logs on separate server???

    No.

    The point of having a transaction log alone on a drive is so that the disk's write head is always (*) in position to write, since a log is written...

    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 problems

    I'm not sure how to recover from that problem without loosing some data.

    If you try to set the database into emergency mode, can you view the tables? Can 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: SQL SERVER detected a logical consistency-based I/O error: torn page

    Glad to help.

    Now plase make sure that all of your databases, including the system ones (master, model, msdb) get regularly backed up.

    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: Looking for a good book on C#

    Leslieo (6/25/2008)


    At any rate, I've found the Head First C# book to be worthwhile for training, though you'll need the C# doorstop reference to go with it.

    I've used the Java...

    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: SQL Server 2005 standard edition

    2005.

    SQL 2000 standard supported max 2 GB, regardless of the setting of the /3GB switch or AWE

    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: Query: Tunning....

    The stuff I gave tyou is to see why the tran log can't be truncated. Once we know that, fixing is usually isn't hard.

    Auto commit is the SQL default. Unless...

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

    If it's a 2005 database rather don't enable torn page detection. Enable page checksum. It's a more accurate way of detecting damage to pages.

    You want some form of page protection...

    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: Query: Tunning....

    Ok, there are other ways of doing that then reading the tran log (which is messy)

    Have a look at the sys.databases view. There's a column called log_reuse_wait_desc. It lists the...

    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: In SQL2k msdb marked suspected

    subesh_bulbul (6/25/2008)


    i had worked on guidline for the purpose that i have taken a backup of 'msdb' from my another office and restore on suspected one.it has been restore and...

    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: Scary Questions

    I wouldn't worry so much about the questions asked. I'd worry about the questions not been asked.

    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: Forcing sql not to cache plans for procs

    You really shouldn't be flushing the cache regularly.

    What are the symptoms of the problem that you are seeing?

    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: Query: Tunning....

    You don't need the distinct inside the IN. In is just checking for existance. It doesn't matter how many times a value is there.

    Other than that, I don't think there's...

    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 - 46,066 through 46,080 (of 49,552 total)