下面的示例假设 odbc 数据源 myfoxsqlnt 是可用的数据源的用户 id 是“sa”。先打开 testdata 数据库,并创建 myconn 连接。然后用 display connections 显示数据库中的命名连接,最后用 delete connection
从数据库中移去该连接。
close databases
open database (sys(2004) + 'samples\data\testdata')
create connection myconn datasource "myfoxsqlnt" userid "sa"
clear
display connections && 在数据库中显示命名连接
delete connection myconn && 移去刚才创建的连接