Hi,
I have two tables in differents databases : Master database :
ServerInformati on where there is a table called "Clientes" and Table
"Documentos " in the Database Index2003
What I need to do via Trigger is update the table "Documentos " in the
field "Cliente" everytime the "Clientes" table change the field
'Cliente'.
I´m using the follow Trigger
CREATE TRIGGER UPDate_Document os_Index2003 ON dbo.Clientes
FOR UPDATE
AS
UPDATE [dbo].[Index2003].[Documentos]
SET [dbo].[Index2003].[Documentos].Cliente = i.Cliente
FROM Inserted i
INNER JOIN [dbo].[Index2003].[Documentos] D
ON D.ID_Clientes = i.ID_Clientes
When I commit the change in the register "Clientes" arise the follow
message :
Invalid object name 'dbo.Index2003. Documentos'
Have I doing something wrong ?
Thanks for attetion
Leonardo Almeida
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
I have two tables in differents databases : Master database :
ServerInformati on where there is a table called "Clientes" and Table
"Documentos " in the Database Index2003
What I need to do via Trigger is update the table "Documentos " in the
field "Cliente" everytime the "Clientes" table change the field
'Cliente'.
I´m using the follow Trigger
CREATE TRIGGER UPDate_Document os_Index2003 ON dbo.Clientes
FOR UPDATE
AS
UPDATE [dbo].[Index2003].[Documentos]
SET [dbo].[Index2003].[Documentos].Cliente = i.Cliente
FROM Inserted i
INNER JOIN [dbo].[Index2003].[Documentos] D
ON D.ID_Clientes = i.ID_Clientes
When I commit the change in the register "Clientes" arise the follow
message :
Invalid object name 'dbo.Index2003. Documentos'
Have I doing something wrong ?
Thanks for attetion
Leonardo Almeida
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Comment