Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiuser Problems

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a visualBasic application with ADO control, the data base is SQL server.
The conecction:
Dim cn As ADODB.Connection
With conect
.ConnectionString ="myconectionstring"
.CursorLocation = adUseClient
.Attributes = adXactCommitRetaining
.Open
.BeginTrans
End With

The redorsets:
Dim rs As ADODB.Recordset
rs.Open "select from MyTable", cn, adOpenStatic, adLockReadOnly

And it does not work in multiuser mode. ¿Does someone Knows why?
¿Has SQL server any property which change this mode?

Thanks
 
I think you have a bad function calling order:
With conect
.ConnectionString ="myconectionstring"
.Open
.CursorLocation = adUseClient
.Attributes = adXactCommitRetaining
.BeginTrans
End With Ion Filipski
1c.bmp


filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top