Hello:
I'd like to create a stored procedure that does the following:
Updates 1 field in 1 table with info from another table in another database based on 1 criterion.
example:
select * from [cegewf].[cege].dbo.[cgrut
as_t] (info to update from)
update db_ordenes_compra.f_entr_r
uta (field to update to)
where cod_rut=pedido.
This table "db_ordenes_compra" may have more than one record with the same number in "pedido", but I want them all to get updated.
How can I do this?
Thanks.
Joseph
Start Free Trial