I am developing a Visual Basic program that accesses a SQL2000 database. One of my queries is as follows:
"Select * from table1 where id = " & n
where n is selected by the user.
When I open the recordset on my local system using ADO, the recorset.locktype comes back as adLockBatchOptomistic, which allows me to append records.
However, when I run the code on my production system (also SQL2000), the recorset.locktype comes back as adLockReadOnly, which does not allow me to append records.
I am assuming that there is some setting on my SQLServer that is different from the production SQLServer. Does anyone know what could cause this? As it is, I have to debug my application on the production system, which I would prefer to avoid.
Thanks.
"Select * from table1 where id = " & n
where n is selected by the user.
When I open the recordset on my local system using ADO, the recorset.locktype comes back as adLockBatchOptomistic, which allows me to append records.
However, when I run the code on my production system (also SQL2000), the recorset.locktype comes back as adLockReadOnly, which does not allow me to append records.
I am assuming that there is some setting on my SQLServer that is different from the production SQLServer. Does anyone know what could cause this? As it is, I have to debug my application on the production system, which I would prefer to avoid.
Thanks.