怎么用ado 连接远程数据库? 急用谢谢 的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不通过BDE,ODBC 不知道类似这样写能不能实现 : adoconnection.connectstring:='provider=XXXX;remote server=192.168.1.1;' function TdmDataBase.gfConnectData(AAdoCon:TAdoConnection;AServerName,ADBName,AUserID,APassWord:String;AConType:TConnectionType):Boolean;var sConnect:String;begin if AAdoCon.Connected then AAdoCon.Connected:=False; Case AConType of ctSqlServer: begin sConnect:='Provider=SQLOLEDB.1;Password='+APassword +';Persist Security Info=True;User ID='+AUserID +';Initial Catalog=master;Data Source=' +AServerName+';Use Procedure for Prepare=1;Auto Translate=True;Packet Size=8192;Workstation ID='+AServerName; AAdoCon.DefaultDatabase:=ADBName; end; ctOracle: sConnect:='Provider=MSDAORA.1;User ID='+AUserID +';Password='+APassword +';Data Source='+AServerName +';Persist Security Info=False'; end; //end of Case AAdoCon.ConnectionString:=sConnect; try AAdoCon.Connected:=true; except Exit; end; Result:=True;end;//其中为枚举类型,表示数据连接类型 TConnectionType = (ctOracle, ctSqlServer); 三层架构的问题 需要一份商店(进销存)管理系统的设计文档 怎么样在access数据库中存储jpg图片? 关于服务程序的使用 为什么不能全屏?怪问题。 很难的一个RichEdit问题!在线等待,急急 裝兩個Win98(簡/繁体),用boot magic引導,怎樣安裝????? constructor的用法 如何将bmp文件压缩成jpg文件?delphi里有现成的控件或类吗? 关于ado中存储过程构件ADOStoredProc中的参数问题,真是奇怪!!!! 关于市场管理费 事物处理。。。。。。。。。。。。。。。。。。。
不知道类似这样写能不能实现 :
adoconnection.connectstring:='provider=XXXX;remote server=192.168.1.1;'
var sConnect:String;
begin
if AAdoCon.Connected then AAdoCon.Connected:=False;
Case AConType of
ctSqlServer:
begin
sConnect:='Provider=SQLOLEDB.1;Password='+APassword
+';Persist Security Info=True;User ID='+AUserID
+';Initial Catalog=master;Data Source='
+AServerName+';Use Procedure for Prepare=1;Auto Translate=True;Packet Size=8192;Workstation ID='+AServerName;
AAdoCon.DefaultDatabase:=ADBName;
end;
ctOracle:
sConnect:='Provider=MSDAORA.1;User ID='+AUserID
+';Password='+APassword
+';Data Source='+AServerName
+';Persist Security Info=False';
end; //end of Case
AAdoCon.ConnectionString:=sConnect;
try
AAdoCon.Connected:=true;
except
Exit;
end;
Result:=True;
end;//其中为枚举类型,表示数据连接类型 TConnectionType = (ctOracle, ctSqlServer);