哪位哥们知道UniDac中TUniConnection的连接池怎么用的? 求教 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Database属性里输入数据库路径加上数据库文件名即可,同时需要Query和DataSource 用法和ADO一样的吧 我做了层简单封装,跟ado差不多,如下:type TSMDBParam=record dbType : TDbType; server : string; account : string; password: string; dbName : string; port : integer; end;function TSMUniDriver.Conntect(): boolean;begin Disconnect(); case FDBParam.dbType of dtMySQL : FConnection.ProviderName := 'MySQL'; dtMSSQL : FConnection.ProviderName := 'SQL Server'; dtSqlite: FConnection.ProviderName := 'SQLite'; end; FConnection.SpecificOptions.Values['UseUnicode'] := 'true'; FConnection.SpecificOptions.Values['Direct'] := 'false'; FConnection.Username := FDBParam.account; FConnection.Password := FDBParam.password; FConnection.Database := FDBParam.dbName; FConnection.Server := FDBParam.server; FConnection.Port := FDBParam.port; try FConnection.Connect; result := FConnection.Connected; except result := false; end;end; 斑竹来看看,论坛怎么回事啊? 怎么实现类似FLASHGET的当鼠标在网页的某一链接上单击右键的时候,出现"使用FLASHGET下载"的效果 再加100分,两百分都是你的 如何将DBGrid中显示的记录导入到一个数据库的mxb表中去??????? 基于InterBase的数据库开发 救命啊!!!这下玩完了,呜呜呜~~~~~ 如何返回一条刚被修改过的记录? 紧急求助 请问谁能提供教师管理系统(源代码,程序,设计理念皆可,提供者加分) 100分求教,.exe 如何取得特定cookie中的特定值,如用户名等。在线等待。 求助数据库查询的问题!! 把数组的数据写入字段
TSMDBParam=record
dbType : TDbType;
server : string;
account : string;
password: string;
dbName : string;
port : integer;
end;
function TSMUniDriver.Conntect(): boolean;
begin
Disconnect();
case FDBParam.dbType of
dtMySQL : FConnection.ProviderName := 'MySQL';
dtMSSQL : FConnection.ProviderName := 'SQL Server';
dtSqlite: FConnection.ProviderName := 'SQLite';
end;
FConnection.SpecificOptions.Values['UseUnicode'] := 'true';
FConnection.SpecificOptions.Values['Direct'] := 'false';
FConnection.Username := FDBParam.account;
FConnection.Password := FDBParam.password;
FConnection.Database := FDBParam.dbName;
FConnection.Server := FDBParam.server;
FConnection.Port := FDBParam.port;
try
FConnection.Connect;
result := FConnection.Connected;
except
result := false;
end;
end;