Different behavior under SQL 2K and SQL7
From: Ben (BenNOSPAM_at_NOSPAMknieff2.com)
Date: 03/06/04
- Next message: William: "ADO connection question"
- Previous message: Shelby461: "Re: Recordset question"
- Next in thread: Val Mazur: "Re: Different behavior under SQL 2K and SQL7"
- Reply: Val Mazur: "Re: Different behavior under SQL 2K and SQL7"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 06 Mar 2004 15:23:33 GMT
Hi group -
I'm at my wits end, and I can't find anything that seems to reference my
problem.
I have an app that uses ADO to add a record to two tables. I have two
client side recordsets and I do .AddNew within a transaction.
Both recordsets are opened on the same connection using the MSDASQL.1
provider (Based off a DSN).
The operation works flawlessly when connected to SQL 2K at our office.
But at the client site it bombs with the error "Multiple step
operation..." when attempting to assign a value to the first field of
the first recordset.
Now, the kicker might be that this first field is the primary key field
and someone (not me) decided to generate random numbers for use as PK
values rather than use an identity field. So the random PK value is
produced by a function that verifies that the value is unique, returning
a VB Long, the field on the table is an SQL Int.
So, the question is, why does this thing work just fine against SQL 2K
and not against SQL 7? Did the size of Int change (I can't find anything
to this effect)? Is there some limitation in the MSDASQL.1 provider when
connecting to SQL 7?
Any thoughts and ideas are much appreciated.
Thank you,
BK
- Next message: William: "ADO connection question"
- Previous message: Shelby461: "Re: Recordset question"
- Next in thread: Val Mazur: "Re: Different behavior under SQL 2K and SQL7"
- Reply: Val Mazur: "Re: Different behavior under SQL 2K and SQL7"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|