Forum Replies Created

Viewing 15 posts - 421 through 435 (of 1,086 total)

  • RE: Can''''t get UDF to replace Cursor

    I believe that is it, Carl. 

    Thank you!!

     

    I wasn't born stupid - I had to study.

  • RE: Enterprise Manager - Current Activity

    Not sure what you are looking to see, but try these two things in Query Analyzer: 

    sp_who -- you can add a user name to this function 'user' to...

    I wasn't born stupid - I had to study.

  • RE: Can''''t get UDF to replace Cursor

    When I test a portion of the function: 

    SELECT CONVERT( varchar, COALESCE( tb_intl.country_code, '')) + ' ' +

                 COALESCE( Countries.country_name, '') + '  ' +

                 CONVERT( varchar, COALESCE(...

    I wasn't born stupid - I had to study.

  • RE: Davy Crockett with advice on our "new" New Deal

    Agree wholeheartedly with you Steve!  FEMA does push the envelope of the "Health and general welfare" clause...  Federal Gov't re-building is NOT Constitutional! 

    Did you know that Gifts to Help...

    I wasn't born stupid - I had to study.

  • RE: Update Table by Replacing NULLS

    Glad to help. 

    I wasn't born stupid - I had to study.

  • RE: Automatically Create Joints

    I agree with you AJ.  It is not elegant, (I like bulldozer anyway ), but it is a one time shot and that...

    I wasn't born stupid - I had to study.

  • RE: Update Table by Replacing NULLS

    DECLARE @OriginalTable TABLE( COL1 varchar(5),

                                                       COL2 integer,

                                                       COL3 integer)

    INSERT INTO @OriginalTable

    SELECT 'A', 1, 1          UNION ALL

    SELECT 'B', 1, 2          UNION ALL

    SELECT 'C', 1, 3         ...

    I wasn't born stupid - I had to study.

  • RE: Len word

    I would recommend using Vladan's approach and add an

    IF LEN( @parse_string) = 1

    BEGIN

         SET @parse_string = @parse_string + 'h'

    END

    (or something along those lines). 

    I would...

    I wasn't born stupid - I had to study.

  • RE: One SP for Update and Add

    Sounds like an intense CASE statement. 

    Why do you only want to UPDATE certain fields rather than the entire record?  (Obviously, the INSERT will take care of itself...). 

     

    I wasn't born stupid - I had to study.

  • RE: @@error problem

    @@ERROR changes with each successive action.  Create another @Variable and capture @ERROR for display. 

     

    I wasn't born stupid - I had to study.

  • RE: Returning single row from multiple rows

    Excellent!  I have recently gotten a copy to install at home, (I am currently using the free MySQL - so this will be nice to have a real version). 

    I...

    I wasn't born stupid - I had to study.

  • RE: One SP for Update and Add

    The easiest way I know of is to use flow control: 

    IF EXIST( SELECT PK FROM MyTable)

         UPDATE

    ELSE

         INSERT

     

    I wasn't born stupid - I had to study.

  • RE: Lock Question (Yawn!)

    I have seen postings like this before on this site.  Maybe you could do a search and see if you can find how people resolved it?  There should be multiple...

    I wasn't born stupid - I had to study.

  • RE: how do i build this query?

    You got it!  I missed that one as well...

    I wasn't born stupid - I had to study.

  • RE: update, insert delete trigger help

    Those two tables "inserted" and "deleted" contain the information about the records that have been changed. 

    Try making another Trigger that takes all records from "inserted" and dumps them into...

    I wasn't born stupid - I had to study.

Viewing 15 posts - 421 through 435 (of 1,086 total)