Forum Replies Created

Viewing 15 posts - 30,166 through 30,180 (of 49,552 total)

  • RE: Optimizing the Query..

    vijay1327-891581 (10/6/2010)


    1: Remove count(*) and replace it with count(any one INTEGER type column).

    Great if you're trying to slow the query down or change it's meaning. Not very successful...

    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?

    WayneS (10/6/2010)


    GilaMonster (10/6/2010)


    ... I have 3 table variable myths targeted.

    Did I cover them in my article[/url]? If not, I'd love to know what you have, so that I can enhance...

    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?

    CirquedeSQLeil (10/6/2010)


    GilaMonster (10/6/2010)


    Anyone interested in tackling the 'truncate table is not logged and cannot be rolled back' myth for this month's T-SQL tuesday?

    http://sankarreddy.com/2010/10/invitation-to-participate-in-t-sql-tuesday-11-misconceptions-in-sql-server/

    That sounds like a fun one, unless 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: Optimizing the Query..

    Ken McKelvey (10/6/2010)


    Also, the trunc and sysdate functions suggest this is an ORACLE query.

    I think you're right.

    There's a TRUNC function in report builder, but not one in SQL Server 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: 2005 to 2008 db restore taken 6 days and counting ...

    scott_lotus (10/6/2010)


    GilaMonster (10/6/2010)


    My guess is that you hit the 'debug' button rather than the execute button in management studio. It won't say debugging if you just ran the query.

    Stop it,...

    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?

    Paul White NZ (10/6/2010)


    GilaMonster (10/6/2010)


    Does anyone think my response here was over-the-top?http://www.sqlservercentral.com/Forums/FindPost999124.aspx

    No, what makes you think it might have been?

    Reading over it after I posted it read (to me) almost...

    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: Dumping the transaction log in SQL Server 2008

    Please don't crosspost. It just wastes people's time and fragments replies.

    No replies to this thread please. Direct replies to http://www.sqlservercentral.com/Forums/Topic999129-1550-1.aspx

    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: How to truncate log file in SQL Server 2005

    Brandie Tarvin (10/6/2010)


    I do have to ask this. You have full database backups scheduled, but it's not backing up the MDF file?

    How do you know it's not backing 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: 2005 to 2008 db restore taken 6 days and counting ...

    My guess is that you hit the 'debug' button rather than the execute button in management studio. It won't say debugging if you just ran the query.

    Stop it, then hit...

    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: Dumping Transactionlog in 2008

    The correct syntax aside, you should not be dumping the transactions at all. Run log backups if you need point in time recovery, otherwise switch to simple recovery model.

    Take 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: sqlserver agent,sqlserver 2008 compatability_level issue.

    You don't have the SQL 2008 database engine. All you have is the 2008 client tools (management studio and the like) and the only database engine you have listed 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: Are the posted questions getting worse?

    Does anyone think my response here was over-the-top? http://www.sqlservercentral.com/Forums/FindPost999124.aspx

    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: Can i have simple recovery for my distribution Database in a transactional replication

    Gowtham Chowdary (10/6/2010)


    Reg. performance as per my knowledge simple recovery will be better than full in case like BCP.

    Maybe, but is there a lot of BCP on the distribution 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: How to truncate log file in SQL Server 2005

    crazy4sql (10/6/2010)


    GilaMonster (10/6/2010)


    liewsb (10/6/2010)


    Sorry to ask that should I choose the file or Database?

    Neither initially.

    Gail, Why cant he shrink the file(log)?

    Because if this is a case of full recovery, no...

    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: How to truncate log file in SQL Server 2005

    liewsb (10/6/2010)


    Sorry to ask that should I choose the file or Database?

    Neither initially.

    We have a schedule job to do a full backup on the database, but not these two file,...

    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 - 30,166 through 30,180 (of 49,552 total)