delete connection 命令示例

下面的示例假定名为 myfoxsqlnt 的 odbc 数据源是可用的,数据源的用户标识 (id) 为“sa”,打开 testdata 数据库。创建名为 myconn 的连接。display connections 用来显示数据库中的命名连接。然后用 delete connection 将连接从数据库中删除。

close databases
open database (sys(2004) + 'samples\data\testdata')

create connection myconn datasource "myfoxsqlnt" userid "sa"
display connections && 显示数据库中的命名连接。
delete connection myconn && 删除刚创建的连接