Forum Replies Created

Viewing 15 posts - 1,711 through 1,725 (of 3,348 total)

  • RE: COALESCE

    sknox (6/3/2013)


    Good question! I would clarify the answer a little bit, though:

    ... the result returns the data type of the expression with the highest data type precedence.

    should probably be

    ...

  • RE: GROUPING SETS - 1

    L' Eomot Inversé (6/1/2013)


    (in this case watching the pattern of NULLs is a better way of identifying groups than using the badly chosen grouping id)

    True, but only in this case....

  • RE: GROUPING SETS - 1

    I don't get it.

    First, the idea of the question. We are given SQL to create and populate a table, *and* SQL that (supposedly?) shows the correct answers. Are we supposed...

  • RE: SSMS Error Message

    catus0124 (5/29/2013)


    but can't type with red color.

    You can't create red color in an empty message pane. But if you first execute a statement that will generate an error, then type...

  • RE: Use of Key Column

    Mike Dougherty-384281 (5/29/2013)


    Given that some of us might consider this a problem to be solved...

    Can you index a computed column that is: left( [varcharmaxfield], 900 )

    I didn't test it,...

  • RE: SELECT INTO FILESTREAM

    I am not surprised that SELECT ... INTO loses the FILESTREAM attribute. However, I was surprised to find that varchar(max) with FILESTREAM would be converted to varbinary(max).

    So then I did...

  • RE: Use of Key Column

    L' Eomot Inversé (5/28/2013)


    There is indeed a rule that no column with type nvarchar(max), varchar(max) or varbinary(max) can be used in index keys. However, it isn't documented on that...

  • RE: EXCEPT - 1

    Toreador (5/28/2013)


    But don't quite understand the statement "The key to this is of course the use of DISTINCT".

    There is no use of DISTINCT, so how can it be the key...

  • RE: INSERT

    manik123 (5/27/2013)


    how it is possible insert into second table even without # or @ (table variable or temp table) Symbol? what type of table is this?

    A normal (permanent) table. It...

  • RE: SSMS Error Message

    Mighty (5/27/2013)


    Nice start of the week.

    One remark though:

    ...if you run code that generates an actual error

    This not only works when an error has been generated. Any message that...

  • RE: INSERT

    Dineshbabu (5/23/2013)


    Still now I was trying as you mentioned in the bonus point (table creation + insert statements) at once. So while parsing time both tables was not exist but...

  • RE: INSERT

    Dineshbabu (5/23/2013)


    I'm really very sorry.. Still i'm not clear.. can you give me the sample code ,one as single batch and another separate batch.

    Sure. It's here: http://www.sqlservercentral.com/questions/T-SQL/98942/%5B/url%5D.

    First run the part...

  • RE: Assigning categories to values 1

    David Conn (5/23/2013)


    It's a shame that "Between -1 And -10" and "Between -10 and -1" aren't equivalent in T-SQL.

    I haven't read BOL re. "Between" but does it state that it...

  • RE: INSERT

    Dineshbabu (5/23/2013)


    Hugo,

    In this scenario, eventhough if we run both insert statements as single batch, first statement will be executed successfully and we will get error only on second one...

  • RE: INSERT

    I'm little bit confused with your explaination,

    I knew that neither statement would execute when sent as a single batch.

    I didn't understand this part. can you give some...

Viewing 15 posts - 1,711 through 1,725 (of 3,348 total)