Forum Replies Created

Viewing 15 posts - 2,011 through 2,025 (of 3,347 total)

  • RE: GO Part 2

    lanre_makinde (9/19/2012)


    Sorry i disagree with the answer, unless there is an explanation for "NotGo"

    Read the 67 posts above yours. The explanation has already been given multoiple times.

    Or you could read...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • RE: Tablesample

    IgorMi (9/19/2012)


    Hugo Kornelis (9/19/2012)


    Nice question. I almost got it wrong, because I had first overlooked the TOP clause.

    However, the official correct answer is still a bit questionable. The result of...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • RE: Tablesample

    Raghavendra Mudugal (9/19/2012)


    to my understanding the TOP (...) uses the primary key constraint so ORDER BY might not be considered here?

    Sorry for the mangled quote, but I did that so...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • RE: Tablesample

    Nice question. I almost got it wrong, because I had first overlooked the TOP clause.

    However, the official correct answer is still a bit questionable. The result of a TOP without...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • RE: FILTER

    ronmoses (9/18/2012)


    I'm confused. The result I'm getting is 8, and I'd be curious to know why.

    (...)

    This returns 8 with either collation. Can anyone explain why that might be?...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • RE: FILTER

    Good question; the explanation could have been better.

    "To make this query case sensitive we need to either set the collation level to Case Sensitive or use 'COLLATE SQL_Latin1_General_CP1_CS_AS' in the...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • RE: Why doesn’t ISNUMERIC work correctly? (SQL Spackle)

    pkosiavelos (9/14/2012)


    I tried '%[^0-9]%' and it does not seem to work.

    create table #test (string char(10))

    insert into #test values ('12334')

    insert into #test values ('abc')

    insert into #test values ('123.3')

    insert into #test...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • RE: GO Part 2

    mtassin (9/13/2012)


    that said... your idea of screwing with somebody by reconfiguring the SSMS client when they are AFK to make SELECT a batch separator... is an awesome idea. And...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • RE: GO Part 2

    Nils Gustav Stråbø (9/13/2012)


    Yes, I can make it execute successfully in SSMS, but I can never get it to work with .NET or any other programming language.

    Nor would you if...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • RE: CS Collation

    Alex Fekken (9/13/2012)


    Thanks Hugo,

    so is it correct to summarise this as: the sort occurs (logically) in two phases. The first phase is always case/accent/etc (?) INsensitive and the (optional)...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • RE: GO Part 2

    DugyC (9/13/2012)


    Sorry to be pedantic, but I feel I have to in this case.

    GO, or NotGo, aside not one person can run this complete script without modification or error.

    @test-2 is...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • RE: CS Collation

    Wow, interesting discussion. I see a lot of explanations that miss the ball by a long shot (hopefully, some of them were posted in jest!), some that almost or even...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • RE: T-SQL

    Raghavendra Mudugal (9/10/2012)


    Hugo Kornelis (9/10/2012)


    Good question - though I am waiting for the first person to claim that "error, error" should also be considered correct because they executed the code...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • RE: T-SQL

    Good question - though I am waiting for the first person to claim that "error, error" should also be considered correct because they executed the code on a server or...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • RE: APPLY - 1

    sknox (9/6/2012)


    Hugo Kornelis (9/6/2012)


    Rewriting them with APPLY makes them valid:

    FROM Table1 AS t CROSS APPLY (correlated subquery) AS s ON s.Col1 = t.Col1

    FROM Table1 AS t CROSS APPLY dbo.MyFunction(t.SomeColumn) AS...


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

Viewing 15 posts - 2,011 through 2,025 (of 3,347 total)