Forum Replies Created

Viewing 15 posts - 12,136 through 12,150 (of 49,552 total)

  • RE: Running DBCC CHECKDB on system databases

    e4d4 (8/13/2013)


    http://support.microsoft.com/kb/290622

    Uncheck "Attempt to repair minor problems"

    This. It's the stupidest option I've ever seen in a maintenance plan (back up tail of log being close)

    If this is happening, it means...

    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: Running DBCC CHECKDB on system databases

    You can't set master to single user mode and you don't need single user mode to run a normal checkDB.

    Why are you running repair? What's damaged? Do you know what...

    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: Composite Index - Two Different Tables - Order By

    Honestly, the question is a little too vague to answer. Depends on any filtering done, the joins and a whole lot more.

    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 memory configuration options

    paul.knibbs (8/12/2013)


    Of course, if the server has less than 4Gb of RAM, then actually *using* the full 4Gb of virtual address space requires you to swap memory to disk, 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: keep result in table valued data type .

    A little vague, but in general

    INSERT INTO @TableVariable

    SELECT <column list> FROM dbo.Function(<parameters>)

    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 2008 full RAM Utilizing

    SQL Server's configuration setting Max Server Memory.

    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 2008 full RAM Utilizing

    With the max server memory configuration setting.

    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: _WA unused stats

    Easy method - drop them all and see which ones SQL recreates. Those are the ones it thinks it needs

    Accurate method - google for which traceflag turns on the optimiser...

    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: locking queries

    The select will take a shared lock, probably at the table level. The update will take an exclusive lock, can't tell what granularity without knowing more about indexes and data...

    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: What to do when temdb is full ?.

    Look up the DMVs in Books Online, or google them. There are plenty of sample scripts available that use them.

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

    That's a bit convoluted, you don't need two nested subqueries

    select SubjectCode,SubjectName,Description

    from Subject

    Where SubjectCode In

    (select SubjectCode

    Where SubjectCode like 'BS%' and LessonDate = '20130305');

    That'll do the same thing.

    Does that subquery return...

    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 memory configuration options

    On 32-bit windows, VAS is 2GB kernel, 2GB user, that's universal no matter whether the server has 10MB memory or 64GB.

    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: Full and transaction log backup chain breakup

    anoop.mig29 (8/10/2013)


    But suppose before T3 i take full backup F2 then i cannot restore T3 untill F2 is restored.

    Sure you can. Full backups do not in any way interfere 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: What to do when temdb is full ?.

    Identify what's using so much TempDB (the task_space_usage and session_space_usage DMVs), tune the culprits to use less TempDB.

    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: Having problem with memory in sql server

    SQL uses memory outside of the buffer pool (which is what max server memory sets). Nothing wrong, this is normal behaviour, however you cannot set how much extra. It's usually...

    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 - 12,136 through 12,150 (of 49,552 total)