January 28, 2010 at 4:13 am
Hi to everybody,
I've a problem that come out after changed ADODB provider from MSDASQL to SQLOLEDB.
I need to lock one row of ORDERS table to avoid other users access into the modify form.
I use a lock in this way:
SQL = "SELECT codice_ente, numero_ordine_emesso " _
& "FROM FODCORDI_TESTATA_ORDINI_ACQ " _
& "WITH (ROWLOCK) " _
& "WHERE Numero_Ordine_Emesso=" & NumOrdine & " AND " _
& "Codice_Ente='" & idEnte & "'"
Set rsADO_Blocco = New ADODB.Recordset
rsADO_Blocco.Open SeQeL, frmLogin.cnnAdo, adOpenStatic, adLockPessimistic
After some code, I need to create a temp table using:
frmlogin.cnnAdo.execute "select * into #CICCIO from div_enti", ret
but the table is not created! The execute method does'nt raise error and RET variable return the correct record number value.
If I skip the lock code, the creation of temp table working successfull!
How can I solve this problem?
TIA,
Carlo P.
PS: sorry for my english!
January 28, 2010 at 9:02 am
I solved opening a new ADODB.Connection only to manage the lock sql.
Thank you,
Carlo
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply