pb sqlserver2000 打包确定问题
现在我打包成exe文件,并把下面的dll都放进去了,在本机是能运行exe,不知道到客服端能不能运行,没有装sqlserver pb环境, 我看网上好多都说要修改注册表,不修改不行吗?我没有电脑测试,
数据库连接方式是
//连接数据库
SQLCA.DBMS = "MSS Microsoft SQL Server"
SQLCA.ServerName = ls_servername
SQLCA.Database = ls_database
//SQLCA.LogId = ls_logid
//SQLCA.LogPass = ls_logpass
SQLCA.LogId = f_en_del_crypt(ls_logid,false)
SQLCA.LogPass = f_en_del_crypt(ls_logpass,false)
SQLCA.AutoCommit = false
SQLCA.DBParm = ""
Connect Using Sqlca ;
dll:
[解决办法]
你自己列的文件加上ntwdblib.dll sqlunirl.dll,cliconfg.dll cliconfg.exe dbnetlib.dll dbnmpntwdll,sqlunirl.dll,ntwdblib
就可以了,ODBC联结必须改注册表,直联就不必了.