Forum Replies Created

Viewing 15 posts - 106 through 120 (of 234 total)

  • RE: Predict the total count

    Hugo Kornelis (11/9/2010)


    If SQL Server would observe the national Greece calendar, it should also support the Bahá'í, Buddhist, Chinese, Eastern Christian, Ethiopian, Hebrew, Hindu, Indian, Iranian, Islamic, and Thai Solar...

  • RE: Predict the total count

    SanDroid (11/5/2010)


    Hugo Kornelis (11/5/2010)


    If the default language of your server happens to be, for example, British English, you'll get 1 as your answer. Same for German, Dutch, French, and...

  • RE: Predict the total count

    Most of complainers: The problem is not dd/mm/yyyy against mm/dd/yyyy as both combinations are inserted (First of July and Seventh of January).

    Problem is in yyyy/dd/mm against yyyy/mm/dd. And both...

  • RE: Predict the total count

    Hugo Kornelis (11/5/2010)


    (I used an educated guess - in my experience, over 90% of the code that does not cater for international use comes from the US, so I picked...

  • RE: Predict the total count

    Yes, there are different cultures with different dateformats. Not only strange countries from the east of Europe!

    The different order in writing dates in UK and USA was used as a...

  • RE: Color coding

    Toreador (10/15/2010)


    honza.mf (10/15/2010)


    Do you like to obtain point without thinking?

    Not at all.

    But the answer as given doesn't depends on SQL, but on how you interpret the phrase "the status bar"....

  • RE: Color coding

    Thanks, Hugo. You have built great reputation here.

    And the others: Don't complain. The question and answers are OK. Yes, it's tricky. Do you like to obtain point without thinking?

  • RE: Color coding

    I will not talk about the answers. It's clear for me: the main window status bar no, the query editor window yes.

    It's a nice option I didn't know about. I'm...

  • RE: Triggers and Transactions

    Tom.Thomson (10/5/2010)


    Nice question.

    But is there something wrong with the documentation? The BoL page referenced states

    @@TRANCOUNT is incremented by one when entering a trigger, even when in...

  • RE: Triggers and Transactions

    Oleg Netchaev (10/1/2010)


    honza.mf (10/1/2010)


    Thank you Oleg, well done.

    It has only one little bug: You start new transaction allways. It is unsafe as you can nest several transactions.

    I prefer in such...

  • RE: Triggers and Transactions

    Oleg Netchaev (10/1/2010)


    Hugo Kornelis (10/1/2010)


    Exactly what change are you refering to? As far as I know, the effect of ROLLBACK in a trigger in current versions is the same as...

  • RE: Triggers and Transactions

    Rich-403221 (10/1/2010)


    I found the question a little misleading due to the fact that you are assigning the trancount to a variable prior to the insert. If you inserted @@trancount DIRECTLY...

  • RE: Triggers and Transactions

    Dan Guzman - Not the MVP (10/1/2010)


    OK, I'm the dummy this morning: Why wasn't (3,1) one of the inserted rows?

    Because the trigger allows only even numbers and 3 is...

  • RE: Triggers and Transactions

    Carlo Romagnano (10/1/2010)

    Results may be different if this option is set SET IMPLICIT_TRANSACTIONS ON

    One thing I haven't counted with, when I was preparing the question.

    It's a hell, versions, collations, options,...

  • RE: Triggers and Transactions

    Hugo Kornelis (10/1/2010)

    I develop a code generator that offers much more constraints that just the standard SQL Server constraints. Triggers are used to check modifications against these constraints. If violations...

Viewing 15 posts - 106 through 120 (of 234 total)