Hi:
The documentation shows the use of CLEAR to clear a librref and close the connection to the database:
http://support.sas.com/documentation/cdl/en/acpcref/61891/HTML/default/a002644677.htm#a002657071
Quote:
"To disassociate or clear a libref, use a LIBNAME statement, specifying the libref (mypclib, for example) and this CLEAR option:
LIBNAME mypclib CLEAR;You can clear a single specified libref or all current librefs.
SAS/ACCESS disconnects from the data source and closes any free threads or resources that are associated with that libref's connection."
So, it wouldn't hurt to clear the xxxxDB libref at the end of your SQL step. Otherwise, you might want to open a track with Tech Support and see whether they can help you with some performance diagnostics. To open a track with Tech Support, go to
http://support.sas.com/ and in the left-hand navigation pane, click on the link entitled "Submit a Problem". Alternately, you can go directly to the Tech Support Problem Form here:
http://support.sas.com/ctx/supportform/createForm
cynthia