TOleDBMSSQLConnectionProperties驱动MSSQL数据库
2024-09-27 13:31:10
TOleDBMSSQLConnectionProperties驱动MSSQL数据库
为了让MORMOT可以驱动所有版本的MSSQL,需要改用SQLOLEDB,因为所有的WINDOWS操作系统里面都提供了SQLOLEDB。
MORMOT1.18以上版本需要改SynOleDB.pas源码:
procedure TOleDBMSSQLConnectionProperties.SetInternalProperties;
begin
OnCustomError := MSOnCustomError;
if fProviderName='' then
// fProviderName := 'SQLNCLI10'; // 注释此行 by cxg
fProviderName := 'SQLOLEDB'; // 增加此行 by cxg
fDBMS := dMSSQL;
inherited SetInternalProperties;
if fUserID='' then
fConnectionString := fConnectionString+
'Integrated Security=SSPI;Persist Security Info=False;';
end;
最新文章
- PriorityQueue和Queue的一种变体的实现
- [JAVA] BlockingQueue学习
- winserver2008 R2 64位 企业版 , IIS 配置运行 asp+access 网站
- Ueditor1.4.3.3+springMvc+maven 实现图片上传
- 稻壳图文模块调不出html代码
- ajax+ashx
- 【转载】 postman使用教程
- Matlab稀疏矩阵
- 微软职位内部推荐-Principal DEV Manager for Bing Client
- 自己生成非官方iPhone toolchain的头文件
- 关于时间对象Date()
- python 多线程和多进程的区别 mutiprocessing theading
- H5+JS+JQuery+ECharts实现异步加载
- Python--urllib3库详解1
- Redis开启远程登录连接
- centos7.4下的python3.6的安装
- Android总结篇系列:Activity启动模式(lauchMode)
- Jenkins-client模式配置
- ionic2 调用 cordova非本地化native 插件方法
- Java IO的一些列子