Forum Replies Created

Viewing 15 posts - 1 through 15 (of 84 total)

  • RE: VIEWS 2

    Excellent question, thanks

  • RE: Temporary Objects 2

    Good question! Good to be reminded of this about constraints on temporary tables.

  • RE: Moving an existing large table to a new file group

    savethytrees (2/7/2012)

    That is why I wanted to know if DROP_EXISTING option will avoid rebuilding the remaining non clustered indexes twice.

    I think the following article explains it:

    http://msdn.microsoft.com/en-us/library/ms188783.aspx

    in the "DROP_EXISTING Clause" section.

  • RE: Query to change rows as columns

    Hi,

    You might check pivot: Using PIVOT and UNPIVOT

  • RE: PRIMARY KEY Vs CLUSTERED INDEX row ordering

    GilaMonster (2/7/2012)


    Without an order by the results are returned in whatever order the last query operator left them in. If all the query did was a scan of an index...

  • RE: Deadlock

    Thanks for the question, i will try to remember ... 🙂

  • RE: TRUNCATE TABLE and ROLLBACK TRAN

    GilaMonster (2/6/2012)


    Is it bad form, if you create a QotD, to list your own article as a reference?

    I wouldn't mind :). Still, an msdn reference, if there is any relevant,...

  • RE: TRUNCATE TABLE and ROLLBACK TRAN

    Nice and important question. This issue is coming up time to time when discussing differences of delete and truncate operation.

  • RE: Strings and Defaults

    L' Eomot Inversé (2/1/2012)


    Brigadur (2/1/2012)


    Maybe, a warning message would be the most elegant and a good compromise.

    Cheers

    Istvan

    I'd prefer to have a configuration option that determines whether it's a warning message...

  • RE: Strings and Defaults

    GilaMonster (2/1/2012)


    Question is, how far do you go?

    Just char, varchar, nchar, nvarchar, binary, varbinary?

    Also decimal and numeric (default is numeric(18,0))?

    Also time (default is time(7)), datetime2 (default is datetime2(7)) and datetimeoffset...

  • RE: Strings and Defaults

    I lay my vote for that declaration of varchar/char/nvarchar/nchar/binary/varbinary/etc data types without specifying length should throw an error (or at least warning) by the parser. Anyone, lead me and I...

  • RE: SET option hierarchy

    Nakul Vachhrajani (2/1/2012)


    SQL Kiwi (2/1/2012)


    honza.mf (2/1/2012)


    I propose to switch the answers #4 and #5. The answer All of above becomes correct in this order.

    :laugh: I like it!

    I like it too!...

  • RE: Computed Columns 1

    Hm, after some thinking i got it right :), although it is a kind of trick question as, to my knowledge, you cannot directly reference columns in another table, only...

  • RE: XML to Relational

    SQL Kiwi (1/27/2012)

    That's the same as the code I posted (just without the /text() optimization).

    I don't understand what this /text() optimization does. On my system it makes the...

  • RE: XML to Relational

    Very useful question, thanks. I learnt something about xml parsing and also optimization so far today :). Thanks for all the comments.

    I would also like to defend the question. I...

Viewing 15 posts - 1 through 15 (of 84 total)