在formcreate中创建动态的连接字符串,
然后在要发布cliconfg和dll文件,在注册表中创建
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSSQLServer/Client/ConnectTo
CONNECTTO下的键值需要,
发布的dll有:cliconfg.dll
dbmsadsn.dll,dbmssocn.dll,dbmsspxn.dll,dbmsvinn.dll,dbnetlib.dll,msdasql.dll,sqloledb.dll
cliconfg.rll(这个文件是打开cliconfg必需要的),dbmsgnet.dll
你或者查查cliconfg中的网络库中需要那些dll就可以了