我用Delphi7开发的DOS命令行程序,一使用TADOConnection对象连接数据库就出错:代码: with DataMod do
begin
Connection.ConnectionString:='Provider=SQLOLEDB.1;Password='
+Password+';Persist Security Info=True;User ID='
+User+';Initial Catalog=AHD;Data Source='+Address;
Connection.Connected:=True;
end;出错信息:Exception EAccessViolation in module usvd_nty_db.exe at 00059090.
Access violation at address 00459090 in module 'nty_db.exe'. Read of addre
s 00000058.
请问要如何该?谢谢!
begin
Connection.ConnectionString:='Provider=SQLOLEDB.1;Password='
+Password+';Persist Security Info=True;User ID='
+User+';Initial Catalog=AHD;Data Source='+Address;
Connection.Connected:=True;
end;出错信息:Exception EAccessViolation in module usvd_nty_db.exe at 00059090.
Access violation at address 00459090 in module 'nty_db.exe'. Read of addre
s 00000058.
请问要如何该?谢谢!
解决方案 »
- grid index out of range
- activex的属性如何保存?
- 哪里有通过网络点对点(P2P)发送文件的源码下载,急急急急急急
- 在delphi里堆栈怎么用?
- 我编了一个mousemove的过程为什么在onmousemove里看不到
- 大家帮帮我好吗????
- 关于让出CPU的函数(help!!!!!)
- 100分你要不要!!!,只要你能解决QREPORT 打印问题,分马上就送给你!
- 没有可用分了!怎么办?
- 薪资大调查:广州DELPHI、VB程序员的薪水为多少RMB/M?????负责项目是什么?
- delphi中怎么样给panel添加自定义颜色的边框?
- DELPHI中如何删除已经注册的MIDAS
DataMod :=TDataMod.Create(Application);