Forum Replies Created

Viewing 15 posts - 436 through 450 (of 819 total)

  • RE: Datefirst

    The scope of "set language" and "set datefirst" is per session and also per procedure/function

    Try this:

    create procedure proc_datefirst

    as

    set language 'us_english'

    select @@DATEFIRST

    go

    set language 'Italian'

    exec proc_datefirst

    select @@DATEFIRST

  • RE: Datefirst

    Clear and easy question!

    Thanks:-)

  • RE: Alter Certificate

    Thanks!

    Clear qotd!

    😛

  • RE: Alter Certificate

    Thanks!

    😛

  • RE: wildcards

    A version of the query without the use of local table:

    SELECT *

    FROM (

    VALUES ('Steve')

    , ('Stephan')

    , ('Stephanie')

    ...

  • RE: wildcards

    The correct exceution of the query depends on ansi_warnings

    set ansi_warnings off

    DECLARE @i TABLE( mychar VARCHAR(10));

    INSERT @i VALUES ('Steve'), ('Stephan'), ('Stephanie')

    ...

  • RE: Behavior of trigger

    Unusual altering a disabled trigger, but it's good to know!

    😉

  • RE: CASE vagaries

    Maybe, the author exchanged the CAST and the ISNULL:

    The right version:

    DECLARE @x CHAR(1)

    SET @x = CASE

    WHEN @x = 'x'...

  • RE: Garbage Collection

    Thanks for the question!

    🙂

  • RE: ACID Properties Question

    Fantastic!

  • RE: Holiday Breaks

    The usual SEVEN!

  • RE: Global Configuration Settings

    Here is sp_configure with a simple optimization:

    -- Use @configname and try to find the right option.

    -- If there isn't just one, print appropriate diagnostics and return.

    select @configcount = count(*)

    ...

  • RE: Global Configuration Settings

    Here is the code from sp_configure:

    -- Use @configname and try to find the right option.

    -- If there isn't just one, print appropriate diagnostics and return.

    select @configcount = count(*)

    from sys.configurations

    where...

  • RE: NTILE

    the rows in an ordered partition into a specified number of groups

    In the answer a word is missing "Distributes".

    So, NTILE returns the number of the group to which the row...

  • RE: Normal Forms and Data Integrity

    Tom, re-word the question, maybe I get it right!

    Unreadable!

Viewing 15 posts - 436 through 450 (of 819 total)