Forum Replies Created

Viewing 15 posts - 57,286 through 57,300 (of 59,049 total)

  • RE: Converting Integer to literal text value if NULL

    As CK suggested... but different...

     SELECT UserID,

            Category,

            PayPeriod,

            ISNULL(CAST(DeleteFlag AS VARCHAR(12)),'Literal Null') AS DelFlag

            ISNULL(CAST(IntegerTest AS VARCHAR(12)),'Null Integer') AS IntTest

       FROM TimeWorked_Temp

  • RE: splitting a string

    Is first name always guaranteed to be there?  If not, what happens to the comma?  Is Middle Initial always guaranteed to be there?  Can the last name have a space...

  • RE: Trigger to return SqlCommand

    Ah... sir... you have created "Death by SQL"... if two processes fire the trigger at the same time, who will win on the input buffer table you've created.  Do the...

  • RE: Returning sequential rows from non-sequential data.

    You're welcome and thank you for the feedback...

  • RE: ''''Invalid column name'''' error after ALTER TABLE

    Cool... nice work around, Robert.

    Stef, I gotta ask... why are you adding a column to a permanent table?  Why doesn't the table already have that column?  I'm obviously missing something here...

  • RE: How do the cursors work?

    We're all in this together and I'm pullin' for ya" --Red Green

    And, thanks for the feedback, Robert... that's what this is all about.

  • RE: Creating sequential numbers

    Thanks, Commando... I appreciate the feedback...

  • RE: ''''Invalid column name'''' error after ALTER TABLE

    Yep... if you try to execute the whole thing... it's a single "batch".  During "compile" time, the whole thing is evaluated and since the column doesn't actually exist, yet, the...

  • RE: Returning sequential rows from non-sequential data.

    If you don't already have one... now is the time to make a "Tally" table... Here's how...

    --===== Create and populate the Tally table on the fly

     SELECT TOP 11000...

  • RE: suppress underline in output file

    Or... Use OSQL with the -h-1 option.  Don't forget to set the -s option to a tab... you can't do THAT from the command prompt... you will need to make...

  • RE: Capturing product affinities

    Not sure Michael is set on this... FULL joins return all rows from both tables 1 time, Cross joins will produce either a partial or full cartesian join (ex. if...

  • RE: Capturing product affinities

    Bingo!... Nice job, CK...

  • RE: How do the cursors work?

    Matti and John... you guys are "spot on" about temp tables.  John, I absolutely agree... lot's of times, a good set based solution will require NO temporal structure whatsoever.

  • RE: How do the cursors work?

    Correct... large table variables are NOT converted to temp tables...

    I strongly recommend AGAINST using table variables for anything more than a dozen or so rows because they cannot be...

  • RE: How do the cursors work?

    I strongly recommend AGAINST using table variables for anything more than a dozen or so rows because they cannot be made to use statistics... both table variables and temp tables...

Viewing 15 posts - 57,286 through 57,300 (of 59,049 total)