Forum Replies Created

Viewing 15 posts - 13,981 through 13,995 (of 49,552 total)

  • RE: ORDER BY = Bubble Sort ? Quick Sort ? Insertion Sort ?

    karthik M (3/8/2013)


    Why does it matter which one SQL uses?

    I am asking "Out of Curiosity" to know the algorithm used by the engine.

    So download the public symbols, attach 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: How can you issue a full backup and not interrupt the LSN's

    UncleBoris (3/7/2013)


    Very happy to be corrected but is it true that the Log Chain is only interrupted by the full backup IF the backup regime does Differential backups?

    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: Syntax error when using IN statement inside inner query

    Mismatched brackets in the inner WHERE clause. Opened here and not closed (AccountNumber IN ('PARISH')

    This is syntactically valid

    SELECT ToBeActionedBy ,

    ...

    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: Page life expectancy diving to sub-10 on a 128 GB server

    sys.dm_os_wait_stats

    CXPACKET is at the top (15%), followed by...

    SP_SERVER_DIAGNOSTICS_SLEEP

    XE_TIMER_EVENT

    HADR_FILESTREAM_IOMGR_IOCOMPLETION

    DIRTY_PAGE_POLL

    BROKER_EVENTHANDLER

    XE_DISPATCHER_WAIT

    LOGMGR_QUEUE

    Most of those are meaningless waits, background processes that are supposed to be waiting. That list says nothing of any value.

    CheckDB is not...

    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: ORDER BY = Bubble Sort ? Quick Sort ? Insertion Sort ?

    karthik M (3/8/2013)


    whereever the optimizer sort the data, it sould use some algorothim to do this operation? Right?

    My question is simple, is there any alogrithm used for ORDER BY...

    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: #Files and FILEGROUPS

    PiMané (3/7/2013)


    If the number of files for tempdb is related with the number of CORES why doesn't the rule apply for database files?

    Because you're not continually (as in many times...

    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: computed column or trigger

    Sean Lange (3/7/2013)


    It seems that Gail beat me to it. 😀

    I think yours is a bit simpler than mine.

    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: Multiple Transaction Log Files

    mtnclimberutah (3/7/2013)


    Hmmm that's crappy. The two files are suppose to be addressed as one sequential topology, but evidently are not.

    They are. SQL will use one, then 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: computed column or trigger

    A little complex, but...

    CREATE TABLE #score (

    StudentID INT IDENTITY(1, 1)

    ...

    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: ISOLATION LEVEL READ UNCOMMITTED

    opc.three (3/7/2013)


    Instead, have them look into enabling READ_COMMITTED_SNAPSHOT mode at the database level.

    Or ALLOW_SNAPSHOT_ISOLATION and SET TRANSACTION ISOLATION LEVEL SNAPSHOT

    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: Multiple Transaction Log Files

    Please don't cross post. It just wastes peoples time and fragments replies.

    No replies to this thread please. Direct replies to: http://www.sqlservercentral.com/Forums/Topic1428198-291-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: Alpha character in SPID? Disk I\O Bottleneck Troubleshooting.

    Adam_Smasher (3/7/2013)


    So, SPID4 is reporting the problem, not necessarily the cause of the problem?

    Correct.

    The slow IOs is telling you that in the last hour, there were x number of IO...

    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: computed column or trigger

    Computed column, absolutely. No need for a trigger here.

    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: Table variable subquery as column

    where RegionName = @Region

    Where the split up region name is the same as the original concatenated list? Don't think that's quite what you want....

    How are the split up region 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: Alpha character in SPID? Disk I\O Bottleneck Troubleshooting.

    System process.

    It's session_id 4 and the s marks it as a system process. So spid 56s would be some system process running on session_id 56

    p.s. Session_id 4 was 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 - 13,981 through 13,995 (of 49,552 total)