conn1:='连接串'//连接到数据库服务器
//不会出错
adoconnection1.connectionstring 可以在程序运行时动态
设置,
adoconnection1.connectionstring:=conn1;
报表单元的存储过程设置为
adostoredproc1.connection:=adoconnection1,
程序编译不报错,可是运行时缺产生异常;
EoleException with message '无效的授权说明'
//不会出错
adoconnection1.connectionstring 可以在程序运行时动态
设置,
adoconnection1.connectionstring:=conn1;
报表单元的存储过程设置为
adostoredproc1.connection:=adoconnection1,
程序编译不报错,可是运行时缺产生异常;
EoleException with message '无效的授权说明'
如果能成功,说明你的conn1写的正确,否则,连接串有错