Forum Replies Created

Viewing 15 posts - 406 through 420 (of 452 total)

  • RE: T-SQL Output Clause

    Michael Poppers (1/6/2010)


    john.curran.z3g (1/6/2010)


    Ideally this question would have included the Categories table with the INSERT to remove the dependency on Northwind. This would also remove any doubt as to the...

  • RE: Wild Join Question

    Hugo Kornelis (12/24/2009)


    Carleton (12/23/2009)


    If you are unsure if the field contains a wildcard character when joining using the LIKE operator, you can avoid false positive results by observing this tip:

    But...

  • RE: Transactions

    jrhutch (12/22/2009)


    Can't help but notice that we have 3 options: true, false and error. If we get an error the answer is still going to true or false. ...

  • RE: Temp Tables

    vk-kirov (12/17/2009)To those people who answered '1,3,4': is the condition 'all active tasks have stopped referencing them' sufficient for dropping the table? The answer is 'No, it is not'. If...

  • RE: Temp Tables

    1,3,4

    Even the answer explanation states that if the session that created it ends, but an active task is still referencing the table, it isn't dropped. So #2 is NOT correct.

  • RE: Fun with Decimals

    Bhavesh_Patel (12/15/2009)


    Why answer differs when we are using the same function on same variable?

    Because we're not actually running the function on the same variable. In the first column, we're doing...

  • RE: Using SQL Server 2008 PBM to Monitor Free Space

    In this article I’m walking you through how to setup data file free space monitoring using SQL Server 2008 Policy-Based Management feature. You may think “Hey dude this is not...

  • RE: INT and SMALLINT

    I dream in binary, so when I see 32768 I automatically think overflow*. 😛

    *At least in regards to Microsoft stuff. They seem to dislike unsigned integers, for some reason.

  • RE: Fun with Scale and Precision

    Well, on page 2, I have a post which illustrates one potential answer, based primarily on the equations but rewriting them as a procedure (http://qa.sqlservercentral.com/Forums/FindPost828945.aspx), and shortly thereafter nadabadan does...

  • RE: SSIS Package Credentials

    Samuel Vella (12/10/2009)


    Personally, I find using windows scheduling and invoking the SSIS package from a .bat file to be a lot more dependable.

    To each his own. I prefer using SQL...

  • RE: Fun with Scale and Precision

    chriscoates (12/10/2009)


    Thanks sknox for some good explanations here. To check I've got this straight ...

    The internal casts give us 10 decimal places.

    That effectively boils down to:

    SELECT ( 1.6757400000 /...

  • RE: Fun with Scale and Precision

    RBarryYoung (12/9/2009)


    Steve: (RE: SSC new site features/wishlist)

    This is a perfect example of a thread or post that I would like to be able to tag or remember...

  • RE: Fun with Scale and Precision

    RBarryYoung (12/9/2009)


    As for the last part, you appaerntly overlooked applying the MAX(..) function in your calculations:

    According to the table from the above link, the result precision is: p1 - s1...

  • RE: Fun with Scale and Precision

    Toreador (12/8/2009)


    sknox (12/4/2009)


    Steve Eckhart (12/4/2009)


    select cast(1.67574 as decimal(38,10)) = 1.675400000 which has precision 6 and scale 10, right?

    and

    select cast(10000 as decimal(38,10)) = 10000.0000000000 which has precision 1 and scale 10,...

  • RE: Counting spaces

    Scott Coleman (12/7/2009)


    The LEN() function ignores trailing spaces, comparing the strings doesn't actually ignore trailing spaces but it pads the shorter string with spaces. The answer's the same either...

Viewing 15 posts - 406 through 420 (of 452 total)