Forum Replies Created

Viewing 15 posts - 29,011 through 29,025 (of 49,552 total)

  • RE: how to restore .trn files in databases

    zahidshah (12/6/2010)


    After some changes in database, we want to restore the data,we have the trn file

    What do you mean by 'after some changes'?

    The error indicates that you brought 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: Find Execution Plan For a Function

    sqldba_icon (12/6/2010)


    GilaMonster (12/6/2010)


    Which events are you tracing?

    I have attached the script.

    I'm not spending an hour or so looking up the event classes in Books online and comparing them with 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: Incorrect syntax near the keyword 'end'.

    One other point.

    IN (SELECT * ....

    That will fail if there's more than one column in that table. Fix it to specify the exact column used for the IN.

    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: System performance limitations

    Please post table definitions, index definitions and execution plan, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

    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: Create index in table variable

    http://sqlinthewild.co.za/index.php/2010/10/12/a-trio-of-table-variables/

    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: Single vs Dual partition

    allin1 (12/6/2010)


    Is it not meaningful to keep DBs on a seperate partition than OS?

    No it's meaningful to keep DBs on separate drive to OS. Separate physical drive. With 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: Find Execution Plan For a Function

    Which events are you tracing?

    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: Short circuit SQL query

    ken.trock (12/6/2010)


    GilaMonster (12/6/2010)


    Or, as an (untested) alternative.

    Select

    Distinct RCD.Variable4

    FROM Route_Call_Detail RCD

    WHERE RCD.[DateTime] > '12/4/10'

    AND RCD.[DateTime] < '12/5/10'

    AND CASE WHEN SUBSTRING(RCD.Variable4,...

    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: Find Execution Plan For a Function

    To get the exec plan you'll need profiler. I believe it's the statistics XML event.

    http://sqlinthewild.co.za/index.php/2009/04/29/functions-io-statistics-and-the-execution-plan/

    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: Short circuit SQL query

    Or, as an (untested) alternative.

    Select

    Distinct RCD.Variable4

    FROM Route_Call_Detail RCD

    WHERE RCD.[DateTime] > '12/4/10'

    AND RCD.[DateTime] < '12/5/10'

    AND CASE WHEN SUBSTRING(RCD.Variable4, 1, 6)...

    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: Short circuit SQL query

    SQL makes no guarantee as to what order expressions will be evaluated in and, as such, one cannot assume that any form of 'short-circuiting' will always occur, especially when dealing...

    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: Denali - storage format and compression backwards compatibility

    Vardecimal was introduced in 2005 SP 1(iirc) and deprecated in SQl 2008 (replaced by compression). I cannot remember the exact syntax, but it should be an ALTER DATABASE to enable...

    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 - Database Mirroring (Change of Recovery Model)

    <sigh> Please go and do some reading on mirroring before you try implementing it.

    IF the mirroring session becomes suspended (and please read up on what 'suspended' means for a mirroring...

    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?

    Looks like my former ISP's support. I recall them pondering most perplexed over an IPConfig that showed no network connection when I called them to report that I had 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: SQL Server 2005 - Database Mirroring (Change of Recovery Model)

    You missed a key clause.

    I said

    "unless mirroring gets suspended, then log grows because log records can't be discarded."

    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 - 29,011 through 29,025 (of 49,552 total)