Forum Replies Created

Viewing 15 posts - 24,451 through 24,465 (of 26,486 total)

  • RE: Get rid of cursors

    I had a little time here at work and started looking at your code a bit. Something I noticed was the use of 3 part naming conventions in your...

  • RE: Reduce Code Duplication in Stored Procedure?

    I only gave you the query, you'll need to put it into your proc.

    ALTER PROCEDURE [dbo].[spTEST]

    (

    @LineNum VARCHAR(10) = NULL,

    ...

  • RE: DIY

    There are somethings I can do, some things I can't, and some I just don't want to do. I really don't want to work on the cars, I'd rather...

  • RE: Reduce Code Duplication in Stored Procedure?

    charles.frank (7/11/2008)


    Is there a way I can reduce the duplication in this stored procedure? In each if statement, I have practically identical code except for one line in the...

  • RE: Validate Date

    mailsar (7/11/2008)


    RBarryYoung,

    I have a Question,

    Is 1 better or 2 better(Join).

    1.

    FROM Product, ProductType

    WHERE ProductType.ProductTypeID = @ProductTypeID AND

    ...

  • RE: Get rid of cursors

    CTE's alone won't eliminate your cursors. You have to totally relook at the process from set based view instead of a row by row view as is done with...

  • RE: Get rid of cursors

    rbarryyoung (7/11/2008)


    Missing: sample data for the tables (in the form of INSERT statements that can be cut, paste, and run in SSMS to load the tables).

    still not seeing it.

    You noticed,...

  • RE: Understanding INNER join in detail

    john.richter (7/10/2008)


    ...--witness the gentleman above who has yet to be introduced to upper case. I've noticed my own growing propensity to skip words and drop vowels. ...

    Could be...

  • RE: Get rid of cursors

    What we have: current code, table DDL, sample output.

    Missing: sample data for the tables (in the form of INSERT statements that can be cut, paste, and run in SSMS to...

  • RE: Get rid of cursors

    Although the WHILE loop eliminates the CURSOR, it doesn't eliminate the RBAR. You are still doing row by row processing.

    In order to really help, we need additional information. ...

  • RE: Understanding INNER join in detail

    Marty Benson (7/9/2008)


    I was actually expecting this article to show me why I needed the "INNER" keyword when using "JOIN".

    I always just use "JOIN" without the "INNER" and I was...

  • RE: Dumb Question!

    Reality - What a Concept (-- Robin Williams)

    😎

  • RE: case statement in stored procedure

    Also, you can't use a variable in a select statement for a tablename, unless the variable itself is a table variable (confused?).

    What you are trying to do would require the...

  • RE: case statement in stored procedure

    Betty Sun (7/9/2008)


    Hi all,

    I have a stored procedure. But it seems that you cannot use variable for a table. variables are only can be used in condition expression? What about...

  • RE: Brain Dead Moment

    Okay. Good to know. And yes, I still want to run the UPDATEUSAGE. It just really bothered me that I couldn't remember it.

    Thanks!

    😎

Viewing 15 posts - 24,451 through 24,465 (of 26,486 total)