ODBC Locks Application

This is a discussion on ODBC Locks Application within the ODBC forums in Framework and Interface Programming category; In the following code segments if conORCALE is set to strDIRECT the recordset opens OK. If it is set to strODBC the application locks up. Anyone got any ideas? ' Direct connection Public Const strDIRECT = "Provider=MSDAORA.1;Password=" & ORA_PSWD & ";User ID=" & ORA_USER & ";Data Source=" & ORA_SRVC & ";Persist Security Info=true" ' ODBC Connection Public Const strODBC = "Provider=MSDASQL.1;Password=" & ORA_PSWD & ";User ID=" & ORA_USER & ";Data Source=" & ODBC & ";Persist Security Info=true" ' ... With RS .ActiveConnection = conORACLE .CursorType = adOpenKeyset .LockType = adLockOptimistic .CursorLocation = adUseServer .Open strSQL End With...

Go Back   Application Development Forum > Framework and Interface Programming > ODBC

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-02-2003, 10:43 AM
Bob Schild
Guest
 
Default ODBC Locks Application

In the following code segments if conORCALE is set to
strDIRECT the recordset opens OK. If it is set to strODBC
the application locks up. Anyone got any ideas?


' Direct connection
Public Const strDIRECT = "Provider=MSDAORA.1;Password=" &
ORA_PSWD & ";User ID=" & ORA_USER & ";Data Source=" &
ORA_SRVC & ";Persist Security Info=true"
' ODBC Connection
Public Const strODBC = "Provider=MSDASQL.1;Password=" &
ORA_PSWD & ";User ID=" & ORA_USER & ";Data Source=" & ODBC
& ";Persist Security Info=true"

' ...

With RS
.ActiveConnection = conORACLE
.CursorType = adOpenKeyset
.LockType = adLockOptimistic
.CursorLocation = adUseServer
.Open strSQL
End With

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:42 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.