LispWorks User Guide and Reference Manual > 19 Common SQL > 19.2 Initialization > 19.2.5 General database connection and disconnection

NextPrevUpTopContentsIndex

19.2.5.1 Connection example

The following example assumes that the :odbc database type has been initialized as described in Initialization functions and variables. It connects to two databases, scott and personnel , and then prints out the connected databases.

(setf *default-database-type* :odbc)
(connect "scott")
(connect "personnel" :database-type :odbc)
(print *connected-databases*)

LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex