Forum Replies Created

Viewing 4 posts - 1 through 5 (of 5 total)

  • RE: if exists problem

    Ok.... got the cursor working.

    Thought I would share an example of one way to do it.

    if exists (SELECT * FROM INFORMATION_SCHEMA.COLUMNS

    WHERE TABLE_NAME = 'Unit_SRC_missionSupplies' AND

    COLUMN_NAME = 'SupplyClass')

    BEGIN

    DECALRE @supClass as...

  • RE: if exists problem

    I will re-look at what I tried to get working.

    Thanks again.

    Mark....

  • RE: if exists problem

    Yes... "like" that:)

    I did try and get the dynamic sql to work with a Cursor.... no luck there.

    It was my last warning, and I wanted to put this pig to...

  • RE: if exists problem

    So.... something like this?

    declare @updatestatment =

    N'UPDATE Unit_SRC_PopSupplies SET Supply_Type_Key = @supKey

    ...

Viewing 4 posts - 1 through 5 (of 5 total)