Forum Replies Created

Viewing 15 posts - 166 through 180 (of 201 total)

  • RE: Fun with Transactions - Part IV

    Good question series. Got owned on the first 2 questions, so decided to read and test a bit on the subject. Now the last 2 questions i have been able...

  • RE: Eliminating Duplicate Rows using The PARTITION BY clause

    Okay this might come on a bit strong but anyway.

    Are you kidding me?

    Having a table without anything to uniquely identify a row... okay thats bad.

    Okay you say lets create a...

  • RE: Round

    Nice question. Though the explanation isnt entirely accurate. Its not rounded, its truncated.

    If the question had been, lets say

    declare @r decimal(5,2)

    set @r= round(5/3.2,1,3)

    select...

  • RE: Fun with Transactions - Part II

    Nakul Vachhrajani (9/16/2010)


    Hugo Kornelis (9/16/2010)


    This question is actually almost similar to the one two days ago. The only real difference is the use of the extra keywork WORK (that is...

  • RE: Performance testing and tuning for a beginner

    mlabedz (9/10/2010)


    First off, I think the article was well intended. However, being a seasoned vet with SQL and SQL performance, I think that your article was more of an...

  • RE: Disabling Indexes

    "ALTER INDEX PK_MyId ON MyTable DISABLE" at this line my brain stopped.

    Nice question. Though i think it would have been better if i had stopped at the row above....

  • RE: System Databases

    As for the resource database in SQL2008. Wouldnt you be able to reinstall SQL on a different drive and then copy the old to the new location.

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

    Im guessing "<drive>:\Program...

  • RE: Group by

    amresh_jhingan (9/6/2010)


    I parsed the query before running it.. and it gave me "Command(s) completed successfully.". Not sure why.. ?

    Syntax check only. And the syntax is okay. But that doesnt mean...

  • RE: Group by

    Hugo Kornelis (9/6/2010)


    tommyh (9/6/2010)


    Hugo Kornelis (9/6/2010)


    Good question!

    In addition to your explanation, here is WHY an alias can be used in the ORDER BY, but not in the GORUP BY:

    Because Microsoft...

  • RE: Group by

    da-zero (9/6/2010)


    tommyh (9/6/2010)


    Hugo Kornelis (9/6/2010)


    Good question!

    In addition to your explanation, here is WHY an alias can be used in the ORDER BY, but not in the GORUP BY:

    Because Microsoft havent...

  • RE: Group by

    Hugo Kornelis (9/6/2010)


    Good question!

    In addition to your explanation, here is WHY an alias can be used in the ORDER BY, but not in the GORUP BY:

    Because Microsoft havent implemented it.

    We...

  • RE: How Do I get list of Business days between two specific days?

    Robert Dennyson (9/2/2010)


    How Do I get list of Business days between two specific days?

    I should get Date like this

    '9/2/2010' to '9/10/2010'

    Date should omit the saturdays and sundays from the result

    Using...

  • RE: What will happen?

    :Whistling:

  • RE: Round up or down IV

    Hugo Kornelis (8/24/2010)


    ziangij (8/23/2010)


    tommyh (8/24/2010)


    With every setting at the default however SQL allows this. Now i havent been able to replicate the error.

    Frankly, this surprises me a lot more than...

  • RE: Round up or down IV

    ziangij (8/23/2010)


    plz. refer http://technet.microsoft.com/en-us/library/ms175003.aspx

    for

    select ROUND(748.58, -3)

    result displayed is 1000.00

    but when i execute the same i get an error:

    An error occurred while executing batch. Error message is: Arithmetic Overflow.

    any...

Viewing 15 posts - 166 through 180 (of 201 total)