This is the case... I would like to learn the statement that make the
relation between these tables.
Why? Cos these are separated in two different databases and if a user
make an update in a table from database X these changes must to be
applied in the other table in the another database:
The tables are :
Principal Database Name : Server Information 2004
Table Name : Clients
Fields : ID_Client, Client
Secondary Database Name : Index2003
Table Name : Contratos
Fields : ID_Con, ID_Client, Client
I need to write a Trigger for Update the table Contratos everytime a
user change the values in Clients.
Im using the follow Trigger :
CREATE TRIGGER UPDate_Clients ON dbo.Clients
FOR UPDATE
AS
update Contratos
set Client = inserted.Client
from Clients
inner join inserted on Clients.Client = inserted.Client
When I update the register the follow message in the application raise :
"Key column information is insufficient or incorrect. Too many rows were
affected by update."
If somebody can help me THANKS A LOT OF...
Leonardo Almeida
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!Hey Leonardo;
I noticed that there are no replies...I am getting exactly the same
error but cannot find a solution, nor a workaround. What did you
finally wind up doing? Please reply to my email directly rtodd@.metro.ca
I have similar triggers, they all work when I update my tables directly
in SQL Server. When I move to my ACCESS ADP and perform the same
updates directly in the same table, I get the same error message.
If anyone can help us....please do !
--
Posted via http://dbforums.com
No comments:
Post a Comment