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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ODBC Disconnect

Status
Not open for further replies.

PeterG5

Programmer
Joined
Apr 29, 2003
Messages
68
Location
IE
Hi All,

This is a really easy one for someone....

I use "SQL SQLODBC SET USER SOURCE/userid,password"
to connect to a DB/2 data source;
How do I disconnect from the source?
When running SQL directly, I issue a "connect reset" -
what is the WebFocus equivalent?
Many Thanks.....
 
As soon as the program completed, WebFOCUS disconnects. If you want to connect to another database, issue another connect.
 
Hi WFGuru,

Once I open the DB/2 connection, it stays open and I can
issue as many: 'SQL ODBC SELECT......' commands as I like.
The connection is closed, I understand, when I issue the FIN
command to terminate Focus. What I want to do is to close the DB/2 connection WITHOUT quitting from WebFocus itself...
and to re-issue the "SQL SQLODBC SET USER SOURCE/userid,password" command later in another fex.
I don't wish to connect to another source but I want to disconnect from DB/2 to avoid a forced close of the connection due to 'idle' time......
Thanks.
 
Try this.
SQL SQLDB2 SET AUTODISCONNECT ON COMMAND
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top