Forum Replies Created

Viewing 15 posts - 3,046 through 3,060 (of 8,416 total)

  • RE: Function or procedure?

    Dave Ballantyne (7/2/2010)


    The Dixie Flatline (7/1/2010)


    An odd fact about inline table valued functions is that you can run inserts, updates, and deletes against them. They really are treated...

  • RE: Today's Random Word!

    Precision and scale

  • RE: Implicit conversion question

    mpdillon (7/2/2010)


    I can go back to my previous practice of choosing the smallest data type. I can use 1.0 * in all my divisions without too much trouble.

    Many people do...

  • RE: Implicit conversion question

    Eugene Elutin (7/2/2010)


    Paul may have willing to explain why SQL doesn't keep result of SELECT Cast(2 as decimal(18,6))/3 as decimal(18,6) but adds two more digits after decimal points...

    The rules are...

  • RE: Implicit conversion question

    Eugene Elutin (7/2/2010)


    I guess, as soon as expression contains devision, SQL "types" 1.0 into decimal with higher precision/scale (18,6?): select 1.0 / 1 will return 1.000000.

    Interesting to see how SQL...

  • RE: SQL Table Insert rate?

    GilaMonster (7/2/2010)


    virender.singh (7/2/2010)


    @paul-2 : I will cheer for newzeland during next india-newzeland battle;-)

    Cheer for South Africa next time we play India! We're more likely to win. 😉 :hehe:

    Humph! 😎

  • RE: Implicit conversion question

    Eugene, I see we posted similar advice at the same time. Just one thing:

    Eugene Elutin (7/2/2010)


    You can see that first multiplication with decimal constant 1.0 (by default SQL takes...

  • RE: Implicit conversion question

    In general, you should choose a data type based on the values to be stored.

    If you need to perform a calculation on those quantities (usually a division) that requires a...

  • RE: SQL Table Insert rate?

    Eugene, you included some tags in that link by mistake. This version works:

    http://msdn.microsoft.com/en-us/library/dd425070(SQL.100).aspx

    I'm not sure it will help virender too much, but it's all good useful information.

    As far as...

  • RE: Blocking task which I can't figure out.

    The SELECT * INTO statement (like all data modification statements) runs inside an implicit transaction. The locks taken during the creation of the table and adding records to it...

  • RE: SQL 2005 SP2 Enterprise Slowness

    It's often impossible to diagnose the cause after you have restarted the server. If it happens again, try to connect via the DAC and gather as much information you...

  • RE: using all in a parameter in a stored procedure

    lmu92 (6/30/2010)


    The best one I've seen so far is by Jeff Moden and posted here.

    Interesting. Even though I am credited on that post with a couple of optimisations,...

  • RE: Function or procedure?

    leonardo_gt (6/30/2010)


    ...which is more convenient to use: a function or procedure? in terms of performance are the same?

    In very general terms, it is often possible to write a stored procedure...

  • RE: Function or procedure?

    Gianluca Sartori (6/30/2010)


    Functions don't have predetermined cached query plans, stored procedures do.

    That's a common misconception, which I think goes back to the days when SQL Server had a 'procedure cache'...

  • RE: Delete too long

    Tara-1044200 (6/29/2010)


    Paul

    The definition very simple which consists of 53 columns with varchar(16) and 4 datetime fields and the row count is 345039256

    The reason I asked for the CREATE TABLE statement...

Viewing 15 posts - 3,046 through 3,060 (of 8,416 total)