Almost all of my apps tie in with other software databases.  The question 

I have : 



A) is it best to SConnect right before I use an ODBC table and then SDisconnect 

immediately afterwards or 



B) SConnect at the begining of a session and leave connected until the user 
logs off. 



Note that these apps may have 20 users running the Rbase app at a time, all day 
long and thus 

have 20 ODBC connections to the foreign database open as well.    The ODBC 
tables 

will get accessed, depending on which menu option is being run, from only 
occasionally during the 

day to rather frequently.  Such as every 10 minutes or so. 



I currently have the apps setup to SConnect at startup of the main Menu and 
stay connected all 

day or until the Main Menu is closed.  However, I have been running into issues 
with the foreign ODBC 

engine locking up occasionally. The only major change in the system is that 
more people are 

concurrently using my app and thus more  connections to the ODBC driver on the 
server.  

(Plenty of memory etc. so that should not be an issue) 



I am wondering if SConnecting and SDisconnecting "on the fly" would be a better 
practice or not? 

I.E. Leave all DSN sources "unconnected" until an ODBC table is needed, 
SConnect , use the table 

data, then SDisconnect immediately afterwards. 



Any thoughts? 



Thanks, 

-Bob

Reply via email to