How to release a file on server
From: Davy (Davy_at_discussions.microsoft.com)
Date: 10/21/04
- Next message: [MSFT]: "Re: RecordChangeComplete and Primary Key constraint"
- Previous message: William \(Bill\) Vaughn: "Re: Exporting from SQL 6.7 to SQL 2000"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 21 Oct 2004 15:07:01 -0700
I'm updating records in a file on an AS/400, then I'd like to release the
file for an AS/400 process to have exclusive use of it. When I close the
recordset, the file on the AS/400 remains locked. The only way I've found to
release it is to close the connection, but then upon reopening the connection
later, the recordsets under it have lost their information. (I've reset their
.source & .acctiveconnection, but am having trouble with the parameters).
I'm wondering if there's a way to force the command/recordset to release the
AS/400 file without closing the whole connection? And if not, should I be
skipping the data environment for the connection/recordsets in question and
setting them up in code to control them better?
Sorry if these questions are dumb - I need to get me some formal VB
education some day.
Using VB6, DataEnvironment (using SQL statements in the commands), IBM's
AS/400 ODBC. Tried both client & server cursors, optimistic/pessimistic
update, etc. Would try not using recordset-returning if I knew how.
- Next message: [MSFT]: "Re: RecordChangeComplete and Primary Key constraint"
- Previous message: William \(Bill\) Vaughn: "Re: Exporting from SQL 6.7 to SQL 2000"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|