Forum Replies Created

Viewing 15 posts - 76 through 90 (of 454 total)

  • RE: Union Date/Time Data Types

    The correct answer is "it depends."

    MOST of the time you'll get two rows as explained in the answer.

    HOWEVER, each GETDATE() within each SELECT is evaluated separately. When the separate evaluations...

  • RE: What is the impact of setting SET ANSI_WARNINGS OFF?

    roger.plowman (8/23/2016)


    sknox (8/23/2016)


    roger.plowman (8/23/2016)


    ANSI_WARNINGS are basically concerned with Null values (ignoring the divide by 0 issue which is really a seperate one). I believe the better solution is never allowing...

  • RE: What is the impact of setting SET ANSI_WARNINGS OFF?

    roger.plowman (8/23/2016)


    ANSI_WARNINGS are basically concerned with Null values (ignoring the divide by 0 issue which is really a seperate one). I believe the better solution is never allowing Nulls in...

  • RE: SOME/ANY/ALL

    TomThomson (8/18/2016)


    ...

    (NULL) certainly sorts as if it were equal to itself and less everything else.

    That is because it's in the standard:

    SQL-92 section 20.2 <direct select statement: multiple rows> General Rule...

  • RE: The Clone Limits

    Mike Hays (8/19/2016)


    Good Question, did not know that this command existed...

    It's new in 2014SP2 -- and not in 2016 (yet).

  • RE: Bash for ETL pre-processing

    Ed Wagner (8/15/2016)


    Nice article, David. Like Jeff pointed out, if people have an irrational fear of xp_cmdshell, what are they going to think about Bash? I don't have...

  • RE: Writing Better T-SQL: Top-Down Design May Not be the Best Choice

    Sergiy (8/14/2016)


    There are other aspects which were not mentioned by anyone.

    1. The same small query populating a temp table may be reused in several procedures.

    In such case its plan will...

  • RE: Writing Better T-SQL: Top-Down Design May Not be the Best Choice

    Stan Kulp-439977 (8/12/2016)


    One trick I use is to write stored procedures using temporary tables, then when the stored procedure is finished and working go back through it and turn the...

  • RE: Identifying Cloned Databases

    TomThomson (8/4/2016)


    Steve Jones - SSC Editor (8/4/2016)


    TomThomson (8/4/2016)


    I think the question should have specified SQL Server 2014 SP2 and noted that it applies in no other release.

    You...

  • RE: The basic Aggregate function

    david.gugg (7/25/2016)


    I think this kind of makes sense if you come at it from the Oracle perspective. In Oracle, to select values you have to go against the SYS.DUAL...

  • RE: Computer Math

    Jeff Moden (7/20/2016)


    Agreed. There's not a "good" official MS reference that explicitly states how such compound operators work with respect to the right-hand expression but... if you make the...

  • RE: Installation Passwords

    jon_tout (7/7/2016)


    So all 4 would rank as being 'VERY Strong!'

    2 would rank as 'meh, well OK then'

    1 would rank as 'you gotta be kidding'

    🙂

    And 0 would rank...

  • RE: sp_executesql

    SQL-DBA-01 (7/3/2016)


    Why not option 2?

    In parameter declaration, @parameter type = defaultvalue, the part after the equals sign is a default, not an assigned, value.

    In T-SQL, parameter default values must be...

  • RE: sp_executesql

    Carlo Romagnano (6/30/2016)


    The second option is useless, but it also is correct.

    SELECT @p = N'@m varchar(200)="event message", @d datetime=getdate(), @U varchar(10)="Steve" '

    I.e. this code returns 1 despite @p...

  • RE: Building an Incremental Load Package – Level 3

    prathmanu (6/28/2016)


    Great Post for the starters.I am a newbie in SSIS and BIML ,this post explain how to implement incremental load for single table. But is there any logic in...

Viewing 15 posts - 76 through 90 (of 454 total)