Forum Replies Created

Viewing 15 posts - 20,851 through 20,865 (of 59,072 total)

  • RE: Are the posted questions getting worse?

    Lynn Pettis (5/4/2015)


    Jeff Moden (5/4/2015)


    Jack Corbett (5/4/2015)


    And for back to back posts to the thread. I really can't stand it when an OP says something like:

    Please help...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • RE: Can't Kill SPID

    Jpotucek (5/4/2015)


    I have a SQL Server 2000 Database. 30+ GB with a 15+GB log file.

    I attempted to backup the Database and I receive the following error:

    Server: Msg...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • RE: Running Balance Updation

    vikramchander90 (5/4/2015)


    Hi Jeff,

    Sorry for late reply and thanks a lot for your reply. Your solution worked out perfectly which helped reduce from hours to seconds. Thanks a lot.

    Outstanding. ...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • RE: Are the posted questions getting worse?

    Jack Corbett (5/4/2015)


    And for back to back posts to the thread. I really can't stand it when an OP says something like:

    Please help me fix this poorly...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • RE: To get the average of two largest number amount three column for particular identity.

    Uday3421 (5/4/2015)


    Thank you so much to all........

    You're welcome. Do you understand how it all works?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • RE: To get the average of two largest number amount three column for particular identity.

    Jeff Moden (5/3/2015)


    Uday3421 (5/3/2015)


    ID A B C AVG

    ------------------------

    1 08 09 10 ...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • RE: To get the average of two largest number amount three column for particular identity.

    Uday3421 (5/3/2015)


    ID A B C AVG

    ------------------------

    1 08 09 10 -

    ------------------------

    2 ...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • RE: How a new partition Function apply for Current Data

    MotivateMan1394 (5/3/2015)


    Hi again

    Thank you All

    I Did partitioning successfuly.

    ------------------------------------

    But Unlike the proposed regulation I could have a better performance.

    Database 1 : (Old db Without Partitioning - and 2 index : key...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • RE: UDF not there or invisible

    I agree with Eirikur. Read/Write privs don't give you privs to view definitions of objects. You need those privs to see functions. Of course, you need those...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • RE: How to use Date Diff Function?

    Eirikur Eiriksson (5/2/2015)


    Quick suggestion, use the GETDATE() function in T-SQL

    😎

    Heh... it wouldn't be "quick" though because it wouldn't be SARGable if the same formula the OP used were simply modified...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • RE: How to use Date Diff Function?

    gouri92 (5/2/2015)


    Hi,

    I have added one webpage designed in ASP.Net with C# and sql server 2005 as database. There is table for user registration in which there is a column for...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • RE: newsequentialid() incrementing

    prabhurenga (5/1/2015)


    Hi,

    I got id value with newsequentialid() like below

    3564A919-18EF-E411-83A1-D4AE52C8DF89

    3664A919-18EF-E411-83A1-D4AE52C8DF89

    3764A919-18EF-E411-83A1-D4AE52C8DF89

    first two digits are incrementing sequential.

    I what to increment 17 to 20 digits with hexadecimal values like below

    3564A919-18EF-E411-0100-0EC241552704

    3564A919-18EF-E411-0200-0EC241552704

    3564A919-18EF-E411-0300-0EC241552704

    3564A919-18EF-E411-0400-0EC241552704

    3564A919-18EF-E411-0500-0EC241552704

    3564A919-18EF-E411-0600-0EC241552704

    3564A919-18EF-E411-0700-0EC241552704

    3564A919-18EF-E411-0800-0EC241552704

    3564A919-18EF-E411-0900-0EC241552704

    3564A919-18EF-E411-0A00-0EC241552704

    3564A919-18EF-E411-0B00-0EC241552704

    3564A919-18EF-E411-0C00-0EC241552704

    3564A919-18EF-E411-0D00-0EC241552704

    3564A919-18EF-E411-0E00-0EC241552704

    3564A919-18EF-E411-0F00-0EC241552704

    3564A919-18EF-E411-1000-0EC241552704

    3564A919-18EF-E411-1100-0EC241552704

    3564A919-18EF-E411-1200-0EC241552704

    3564A919-18EF-E411-1300-0EC241552704

    3564A919-18EF-E411-1400-0EC241552704

    3564A919-18EF-E411-1500-0EC241552704

    3564A919-18EF-E411-1600-0EC241552704

    3564A919-18EF-E411-1700-0EC241552704

    3564A919-18EF-E411-1800-0EC241552704

    3564A919-18EF-E411-1900-0EC241552704

    3564A919-18EF-E411-1A00-0EC241552704

    3564A919-18EF-E411-1B00-0EC241552704

    3564A919-18EF-E411-1C00-0EC241552704

    3564A919-18EF-E411-1D00-0EC241552704

    3564A919-18EF-E411-1E00-0EC241552704

    3564A919-18EF-E411-1F00-0EC241552704

    3564A919-18EF-E411-2000-0EC241552704

    Help me to solve task

    With...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • RE: Using "Try-Catch" and "Rollback" on read only stored procedure

    My problem with Try/Catch in such situations is that such situations should not occur at all. Either the data is bad or the query is bad. It shouldn't...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • RE: Using "Try-Catch" and "Rollback" on read only stored procedure

    Grant Fritchey (5/1/2015)


    Eirikur Eiriksson (5/1/2015)


    Grant Fritchey (5/1/2015)


    Eirikur Eiriksson (5/1/2015)


    Grant Fritchey (5/1/2015)


    If you're only doing a SELECT operation, there's no reason to do a TRY/CATCH.

    TRY / CATCH is as valid /...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • RE: Indexes Fragment Really Quickly

    SQLDB101 (5/1/2015)


    I have 3rd party application I'm supporting which is experiencing performance issues. This application runs on a SQL Server 2008 R2 database.

    Why are you even thinking of touching a...

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 15 posts - 20,851 through 20,865 (of 59,072 total)