Forum Replies Created

Viewing 15 posts - 33,091 through 33,105 (of 49,552 total)

  • RE: Inner Join v/s WHERE Col IN (select col from dbo.UDF_Function)

    Which one runs faster?

    Use STATISTICS IO and STATISTICS TIME or SQL Profiler to get cpu, IO and duration.

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

    You're going to have to rewrite it from scratch. SQL doesn't have For loops for starters, while it does have while loops, loops are not a good way to work...

    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: Will performance effects if Transaction log file is big ?

    Not enough information. What you've left out, and what is critical, is the allowable data loss in the case of a disaster. Need that to tell how far apart 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: How do I attach a .mdf if I don't have a .ldf file?

    On the Vista box, run management studio as Administrator (Right click -> Run as Administrator). It's due to the UAC.

    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: Is it possible to move a snapshot to another drive once it's been created?

    Just an additional comment. I do not personally recommend the use of snapshots for long-term reporting, where a single snapshot needs to exist for a long time. Because they cannot...

    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: backup begins at LSN which is too recent to apply

    With the backups that you list, you can restore using the full backup and the last 2 transaction log backups. What happened to the file from the log backup at...

    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: Will performance effects if Transaction log file is big ?

    A large log file is not going to cause performance problems by itself.

    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: Max & Min Memory configuration on 64 bit

    All 3 instances set to 10GB? Are they all of equal importance and memory usage?

    10*3 = 30GB, so there's 18GB remaining. Is there anything else on the server?

    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 do I attach a .mdf if I don't have a .ldf file?

    Looks like the file has the read-only flag. Right click the file (in explorer), uncheck the ReadOnly checkbox and click OK. Try to attach again.

    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 avoid this dead lock?

    I see mentions of K2. Is this a database for one of the K2 business process applications? If so, do you have permission from the vendor to make index or...

    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 checks

    You can run a checkDB, but corruption won't cause duplicate inserts. It causes high severity error messages.

    Run profiler (or a server-side trace) to see what's happening to the database if...

    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 change a stored proc's parameter datatype - without editing a CREATE PROC script

    You will need to script ALTER PROCEDURE statements, edit each one and run the whole lot. If it's a parameter with a constant name, it should be possible to get...

    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: Managing Transaction Logs

    carlb 28852 (5/3/2010)


    I see that Master, MSDB and tempdb default to Simple Recovery Model.

    Master is in simple recovery and, even if switched to full behaves as if it is...

    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: Is it possible to move a snapshot to another drive once it's been created?

    No and no.

    Snapshots can't be moved after they are created. They can't be detached (the one way to move a database) and, since they're readonly, alter database (the other...

    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: need opinion on NOLOCK

    Tested and confirmed

    CREATE PROCEDURE TestingIfREcompiles (@Option INT)

    AS

    IF @option = 1

    SELECT * FROM dbo.LargeTable

    ELSE

    SELECT * FROM dbo.LargeTable2

    GO

    First execution passing 1 (to get first branch) generates a cache miss and a cache...

    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 - 33,091 through 33,105 (of 49,552 total)