
Signature
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
>I meant to say "SET NOCOUNT ON"...
>
[quoted text clipped - 20 lines]
>>>
>>> What exactly does this do?
I don't have that option in this case. The purpose of the downstream tables
is to update another application with changes that were made. The table
that has the trigger is control data, so the results that are moved over to
the changes table are not the records that are in the table, but records
that are affected by changing the table. I use an identity column to have
the records in sequential order of when they were created, so the
application that picks up the changes can get the latest change. I don't
understand why capturing the identity as Malcolm suggested, doesn't work.
The solution he had, had a typo, because there was no closing parenthesis,
but I fixed that and still have the same error. If it was up to me, I would
scrap the Access app at this point, but I don't have time for the redesign
as of yet. The ONLY reason I'm having this issue is because of Access, and
the app that uses this data is .NET. It's very frustrating, especially
since a legacy app is preventing me from moving forward.
> Yes, insert triggers that change the @@identity value cause many trouble
> with ADP. See
[quoted text clipped - 31 lines]
>>>>
>>>> What exactly does this do?
mh - 02 May 2005 16:53 GMT
Note also that my issue is not quite the same as I'm not getting the same
error, but I think the underlying cause could be similar. My error is 'Key
column information is insufficient or incorrect. Too many rows were affected
by update.'
>I don't have that option in this case. The purpose of the downstream
>tables is to update another application with changes that were made. The
[quoted text clipped - 47 lines]
>>>>>
>>>>> What exactly does this do?
Sylvain Lafontaine - 02 May 2005 17:04 GMT
By using the profiler on SQL-Server, you should see exactly what Access is
trying to do and how to solve it.
.NET has been designed expressively to solve this kind of problem; so it's
no wonder that you don't have this problem with your .NET applications.

Signature
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
> Note also that my issue is not quite the same as I'm not getting the same
> error, but I think the underlying cause could be similar. My error is
[quoted text clipped - 52 lines]
>>>>>>
>>>>>> What exactly does this do?
mh - 02 May 2005 17:27 GMT
Ok, never mind about all that. I actually had SET NOCOUNT OFF at the top,
instead of SET NOCOUNT ON. *BLUSH* It is working now, without the identity
workaround, even though both the triggered table and the table underlying
the view have identities.
> Note also that my issue is not quite the same as I'm not getting the same
> error, but I think the underlying cause could be similar. My error is
[quoted text clipped - 52 lines]
>>>>>>
>>>>>> What exactly does this do?