如何制作安排程序設定或新建ODBC連接????
不然我只有安裝一個程序自已手動設定ODBC了,苦呀.
不然我只有安裝一個程序自已手動設定ODBC了,苦呀.
解决方案 »
- 紧急求助:关于Delphi 模拟退火算法
- 请问:在treeview加载大量数据(3000条),如何提高效率?分批加载祥细代码如何写?
- activex问题(期待高手,先送100分)
- 直接拖几个RadioButton到Form上,发现也能互斥?那RadioGroup意义何在?
- 关于进销存软件,添加订单数据的问题!
- 在写Treeview的时候遇见一怪事。帮我看看。
- ***** 安装delpi 6碰到的问题 ******
- 求一份较完整的开发文档或系统分析之类的东西?请帮忙!
- 关于ADOQuery 运行MSSQL的 delete 命令错误问题
- 如何在客户端停止服务器中存储过程的执行`
- 来上海有一年了,也没怎么转,有谁能推荐上海附近的好玩地方?
- 刚刚看到的一个函数,关于文件拷贝进度的,挺不错的,跟大家分享一下
odbcreg:TRegistry;
begin
odbcreg:=TRegistry.Create;
with odbcreg do begin
RootKey:=HKEY_LOCAL_MACHINE;
if OpenKey('SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources',true) then begin
WriteString( 'CONFI_MRPII', 'Microsoft Visual Foxpro Driver' );
CloseKey;
if OpenKey('SOFTWARE\ODBC\ODBC.INI\CONFI_MRPII',true) then begin
WriteString('Driver','vfpodbc.dll');
WriteString('SourceDB','c:\ss.dbc');
WriteString('Description','CONFI_MRPII');
WriteString('SourceType','DBC');
WriteString('BackgroundFetch','Yes');
WriteString('Exclusive','No');
WriteString('Null','Yes');
WriteString('Deleted','Yes');
WriteString('Collate','Machine');
WriteString('SetNoCountOn','No');
CloseKey;
showmessage('VFPODBC datasource create ok');
end;
end;
end;
end;
odbcreg:TRegistry;
begin
odbcreg:=TRegistry.Create;
with odbcreg do begin
RootKey:=HKEY_LOCAL_MACHINE;
if OpenKey('SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources',true) then begin
WriteString( 'CONFI_MRPII', 'Microsoft Visual Foxpro Driver' );
CloseKey;
if OpenKey('SOFTWARE\ODBC\ODBC.INI\CONFI_MRPII',true) then begin
WriteString('Driver','vfpodbc.dll');
WriteString('SourceDB','c:\ss.dbc');
WriteString('Description','CONFI_MRPII');
WriteString('SourceType','DBC');
WriteString('BackgroundFetch','Yes');
WriteString('Exclusive','No');
WriteString('Null','Yes');
WriteString('Deleted','Yes');
WriteString('Collate','Machine');
WriteString('SetNoCountOn','No');
CloseKey;
showmessage('VFPODBC datasource create ok');
end;
end;
end;
end;
odbcreg:TRegistry;
begin
odbcreg:=TRegistry.Create;
with odbcreg do begin
RootKey:=HKEY_LOCAL_MACHINE;
if OpenKey('SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources',true) then begin
WriteString( 'CONFI_MRPII', 'Microsoft Visual Foxpro Driver' );
CloseKey;
if OpenKey('SOFTWARE\ODBC\ODBC.INI\CONFI_MRPII',true) then begin
WriteString('Driver','vfpodbc.dll');
WriteString('SourceDB','c:\ss.dbc');
WriteString('Description','CONFI_MRPII');
WriteString('SourceType','DBC');
WriteString('BackgroundFetch','Yes');
WriteString('Exclusive','No');
WriteString('Null','Yes');
WriteString('Deleted','Yes');
WriteString('Collate','Machine');
WriteString('SetNoCountOn','No');
CloseKey;
showmessage('VFPODBC datasource create ok');
end;
end;
end;
end;
Wise打包工具的使用事例