Forum Replies Created

Viewing 15 posts - 9,871 through 9,885 (of 49,571 total)

  • RE: Shrink Database

    Well, if you're having a problem with a database, stop shrinking it. Making problems worse is usually a bad idea. Shrink doesn't help matters, this isn't MS Access.

    Shrink should never...

  • RE: Shrink Database

    Well, 'when doing a shrink' should be a rare event in the first place.

    I'm happy to have enough free space in the DB to accommodate 6 months of expected data...

  • RE: exclude CTE values

    You can, it'll clean up coding a bit, won't improve performance or change how the query runs.

    WITH FilteredTable4 AS (

    SELECT <whatever columns needed>

    FROM table_4

    ...

  • RE: Where clause issue

    Ok, so the query fragment i gave earlier is correct, it was just short a clause.

    SELECT Booking_ID FROM dbo.BOOKING AS b

    WHERE DG_FLG != 'Y' AND

    NOT EXISTS (SELECT 1 FROM...

  • RE: exclude CTE values

    Without seeing the query, absolutely no idea.

  • RE: Effective way of migrating sql server 2000 to 2012

    You can't go straight from 2000 to 2012. You'll need to either migrate 2000 to 2005 and then 2005 to 2012 or 2000 to 2008/2008 R2 and then 2008 to...

  • RE: Where clause issue

    pwalter83 (2/27/2014)


    What I wish to achieve is no rows should be displayed where DG_FLG = 'Y' and OOG_FLG = 'Y'.

    Which wasn't what you said in your initial post.

    What I...

  • RE: Where clause issue

    Without table definition and usable sample data I'm guessing, but...

    WHERE NOT EXISTS (SELECT 1 FROM <Table Name> ib WHERE ib.Booking_ID = <outer table reference>.Booking_ID AND Flag = 'Y')

    If you want...

  • RE: How to optimize a query that's running slow on Nested Loops (Inner Join)

    Table definitions and index definitions as well please

    Could you post the plan for just that query run in isolation, not that and every single other statement in what looks like...

  • RE: SQL Server detected a logical consistency-based I/O error

    VIII (2/27/2014)


    thanks, but I think the problem is worse than that

    when I try to generate script, nothing to get

    when I try to export data, same message 'SQL Server detected a...

  • RE: Tempdb became FULL

    Grow the file or add additional files on another drive if it filled as part of regular activity.

    On SQL 2000 it's very hard to identify queries using TempDB, the DMVs...

  • RE: Are the posted questions getting worse?

    Sean Lange (2/26/2014)


    GilaMonster (2/26/2014)


    Blog and email working again. Finally.

    I hate DNS-related problems.

    Woohoo!!! I was trying to reference something there earlier today and noticed it was still down.

    Domain update finally went...

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (2/26/2014)


    GilaMonster (2/26/2014)


    Blog and email working again. Finally.

    I hate DNS-related problems.

    Not GoDaddy, I hope. They lost my wife's DNS records and I had to play tech...

  • RE: Partitioning Error

    dan-572483 (2/25/2014)


    I am trying to partition a pair of existing 200 million row tables to improve reporting performance.

    Don't waste your time. Partitioning is not a performance tuning technique. While...

  • RE: Performance issue with a single database

    Google SQL Server statistics and do some reading. Far more than I can summarise here.

Viewing 15 posts - 9,871 through 9,885 (of 49,571 total)