Forum Replies Created

Viewing 15 posts - 9,646 through 9,660 (of 49,552 total)

  • RE: Improve performance

    yuvipoy (3/17/2014)


    Not exists vs Not in.

    The id field in both the table is not null column.

    No difference.

    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: Log file won't truncate...any advice?

    If it's 99% empty, then that suggests that the log backups are successfully truncating the log. If they weren't, your log would be a lot fuller. Truncate means 'mark log...

    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: Statistics skewed

    The automatically created stats are ones which the Query Optimiser requests be created to help it generate optimal execution plans. Keeping them updated is as important or more important than...

    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: Statistics skewed

    djj (3/17/2014)


    where name not like '_W%'

    Why are you explicitly excluding the automatically created statistics?

    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: Restore filegroup from one db to another in sql

    Restore it as another database, copy the data over.

    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?

    I have two clients where I'm writing up a performance report which includes an entire section on their use of NoLock. Going to be an interesting week

    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: Move MDF to another drive VS adding an NDF file

    Jpotucek (3/16/2014)


    I do not have an environment to test this in where the DB Is a replication subscriber. Do you know if I will have a problem detaching 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: Move MDF to another drive VS adding an NDF file

    Jpotucek (3/16/2014)


    If I add a Datafile (.NDF) on another Drive and then set the .MDF file to NOT autogrow, will the .MDF stop growing altogether and data will be 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: Memory leak

    No, he means there isn't a memory leak. Linked servers use a lot of memory, but that's not the same as a memory leak.

    There are a lot of ways 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: please give answer to this Interview question

    rraza (3/15/2014)


    I think we will restore the file backup of that time when table was deleted.

    Why a file restore? What's your justification for choosing that type of restore operation? Do...

    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: Moving MDF and LDF files

    Testing in Production. Excellent idea! </sarcasm>

    You don't have to move any database. Whether or not you move TempDB depends on why you're moving the other databases.

    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: Moving MDF and LDF files

    ALTER DATABASE with the WITH MOVE clause

    Take the database offline

    Copy the files to their new location

    Bring the DB online.

    Test in a dev/test environment first.

    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 Memory settings

    TST, hard to say anything definitive without a lot more data, but if SQL doesn't need more than 32GB it won't necessarily allocate more.

    Check that nothing else on 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: SQL Memory settings

    kshaileshbca (3/15/2014)


    if you have installed windows on 32-bit platform, SQL consume max 32 GB.

    You might want to check your facts....

    The memory limit on 32 bit is, in fact 2GB...

    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?

    Wow, the things you learn around here.

    If you check index fragmentation, enable locked pages and enable (but don't configure) resource governor, SQL will magically start to use less memory

    http://www.sqlservercentral.com/Forums/FindPost1551457.aspx

    and 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

Viewing 15 posts - 9,646 through 9,660 (of 49,552 total)