Forum Replies Created

Viewing 15 posts - 106 through 120 (of 812 total)

  • RE: Getting the CONTEXT_INFO()

    set CONTEXT_INFO 55
    SELECT cast(substring(CONTEXT_INFO(),1,4) as int)

  • RE: Viewing Plans

    Solomon Rutzky - Thursday, February 1, 2018 9:20 AM

    Carlo Romagnano - Thursday, February 1, 2018 7:58 AM

  • RE: Viewing Plans

    Steve Jones - SSC Editor - Thursday, February 1, 2018 7:46 AM

    Corrected the answers. Not sure what I was thinking while typing.

    ......

  • RE: Viewing Plans

    Running the following code raises an error:
    GRANT VIEW SHOWPLAN to JoeDev

    Msg 102, Level 15, State 1, Line 1
    Incorrect syntax near 'VIEW'.

  • RE: Collation order by

    It's surprising me!
  • RE: T-SQL sorting

    Toreador - Monday, January 8, 2018 2:01 AM

    Quite interesting I suppose, though the URL in the explanation doesn't state what happens when...

  • RE: SET the results

    The answer is a little confused!
    The statement raises an error, because of incorrect syntax and not because of multiple values assignement. The following statements demonstrate this:
  • RE: Ending 2017

    The 2nd and 3rd answer are equal.
    I'm curious to know why someone chooses the second answer instead of the third or vice versa.
    😀😀😀
  • RE: STRING_SPLIT with no delimiter

    Good to know!
    I would add  a where clause  to avoid empty string
    DECLARE @a VARCHAR(6) = 'ABCDEF'
    SELECT value FROM STRING_SPLIT(CAST(CAST(CAST(@A AS NVARCHAR) AS VARBINARY)...

  • RE: Data Type Precedence

    Rune Bivrin - Thursday, October 5, 2017 1:05 AM

    Nice one. I got it wrong, simply because I figured adding two dates just...

  • RE: Date fun

    Ahahaha, good fun!

  • RE: Logical Query Processing Filters

    Rune Bivrin - Friday, September 29, 2017 12:04 AM

    Bzzzt!

    Tht's true! I agree.

  • RE: Temporary tables SCOPE

    Christian4143 - Tuesday, September 26, 2017 7:54 AM

    Just to add:

    There is different behavior on SQL-Server 2012....

  • RE: Compressing Integers

    Here the script:

    CREATE TABLE dbo.LotsofIntegers1 (ID INT) WITH (DATA_COMPRESSION = PAGE);
    CREATE TABLE dbo.LotsofIntegers2 (ID BIGINT) WITH (DATA_COMPRESSION = ROW);
    CREATE TABLE dbo.LotsofIntegers3 (ID BIGINT) WITH...

  • RE: When sp_HelpText is not so helpful!

    Another "bug" is when you rename a stored procedure and run sp_helptext.
    It returns the create of stored proc with the old name:
    create procedure A
    as
    select 1 as...

Viewing 15 posts - 106 through 120 (of 812 total)