Next Previous Up Top Contents Index

14.2.5 Database connection and disconnection

14.2.5.1 Connection example

The following example assumes that thesql package has been loaded, and that the:odbc database type has been initialized. It connects to two databases,scott andpersonnel, 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 - 14 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker