Forum Replies Created

Viewing 6 posts - 1 through 7 (of 7 total)

  • RE: this is sybase code how to change it into sql server 2000

    when I created the trigger I am getting below error when I am testing

    SQL STATE=42S02

    MICROSOFT SQL NATIVE CLIENT

    INVALID OBJECT NAME 'UPDATED'

    NO CHANGES MADE TO DATABASE

    CAN YOU HELP ME...

  • RE: this is sybase code how to change it into sql server 2000

    I don't have updated trigger but I have insert trigger

    create trigger jam_spu_csp_insert on customer_special_pricesafter insert asbegininsert into jam_spu ( customer_id, location_number, seq_num )SELECT customer_id, location_number, seq_num FROM insertedendgo

  • RE: this is sybase code how to change it into sql server 2000

    CAN I WRITE LIKE THIS

    create trigger jam_spu_csp_changed

    on customer_special_prices

    after

    update

    as

    begin

    IF UPDATE(price_table)OR UPDATE (bracket)

    insert into jam_spu ( customer_id, location_number, seq_num )

    select customer_id,location_number, seq_num FROM updated

    end

    go

  • RE: this is sybase code how to change it into sql server 2000

    Are price_table, bracket fields from customer_special_prices table ?

    Yes those columns are from customer_special_prices table

    Do you have any idea of what "order 2" means ?

    I have no idea but i...

  • RE: this is sybase code how to change it into sql server 2000

    Thank you very much can you tell me rest of the two triggers

    create trigger jam_spu_csp_changed

    after update of price_table, bracket

    order 2 on customer_special_prices

    referencing old as old_name

    for each row

    begin

    insert into...

  • RE: cretaed trigger in sql server 2000

    Create Trigger jam_spu_csp_insert

    on dbo.customer_special_prices

    After Insert

    AS

    Begin

    Set nocount on;

    insert into jam_spu ( customer_id, location_number, seq_num )

    values ( new_name.customer_id, new_name.location_number, new_name.seq_num )

    end

    go

    error

    Server: Msg 128, Level 15, State 1,...

Viewing 6 posts - 1 through 7 (of 7 total)