Forum Replies Created

Viewing 15 posts - 586 through 600 (of 656 total)

  • RE: Control chars in XML

    honza.mf (5/21/2010)


    It can be some error during copy-paste. I had no problem. Where have you copied the XML segment from?

    Bad thing in these forums is, HTML washes all XML/HTML details...

  • RE: Control chars in XML

    honza.mf (5/21/2010)


    If you are using Notepad as your text editor, try to use Save As and check file encoding. XMLs work fine with UTF-8. If you have xml declaration, encodings...

  • RE: Control chars in XML

    Hugo Kornelis (5/21/2010)


    How did you try to open the file? I followed these steps:

    - Run code with output to text mode

    - Select output, right-click, Copy

    - On desktop: right-click, New, Text...

  • RE: Control chars in XML

    Oleg Netchaev (5/20/2010)


    select * from #t for xml auto, root('rows');

    This will prevent the problems with XML segment problem as the result will include the root element.

    Nope, doesn't work for me,...

  • RE: Control chars in XML

    Am I the only one who gets an error trying to display it in IE? Version 8.0.6001.18702

  • RE: Control chars in XML

    honza.mf (5/20/2010)


    I'm using ± standard settings of SSMS and of IE too. I hadn't any error message running the query.

    You had to have something different.

    Actually on trying it again my...

  • RE: Control chars in XML

    I guessed right, but the answer is wrong!

    I ran the script and got an error

    Error Character '', hexadecimal value 0x0 is illegal in XML documents.

    ie the first option, which is...

  • RE: INSTEAD OF trigger and OUTPUT clause

    Interesting - it never occurred to me that the identity values wouldn't be available in the inserted table!

    So how would you get the identity values of the rows you'd just...

  • RE: Using IDENTITY as a key column

    Hugo Kornelis (5/7/2010)


    If you define the identity column as a PRIMARY KEY, then there always is an index. SQL Server automaticallly creates an index when you create a PRIMARY KEY...

  • RE: Using IDENTITY as a key column

    vignesh 38804 (5/7/2010)


    Index on identity column improves performance

    If you never use the identity column in queries but only use it as a primary key then doesn't it actually make performance...

  • RE: Defensive Programming

    Steve Jones - Editor (4/23/2010)


    It's actually a fun decision on my part, giving people a chance to "catch up" some easy points.

    Easy? Only if you google the results.

    All the QOTDs...

  • RE: Using IDENTITY as a key column

    I'd just like to make clear that although I was (I think) the first person to comment on the answer to the second part, I was reflecting negatively on myself,...

  • RE: Using IDENTITY as a key column

    "SQL Server does not have an efficient way to retrieve rows based on a known value for PersonID."

    There have obviously been too many trick questions lately, as I thought this...

  • RE: ANSI_NULLS

    Oleg Netchaev (4/7/2010)


    This results in

    result

    ------

    A

    I'm lost for words!

  • RE: ANSI_NULLS

    Paul White NZ (4/7/2010)


    I have never come across one.

    Good - I won't worry too much that I got the answer wrong 😉

Viewing 15 posts - 586 through 600 (of 656 total)