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;

最新文章

  1. PriorityQueue和Queue的一种变体的实现
  2. [JAVA] BlockingQueue学习
  3. winserver2008 R2 64位 企业版 , IIS 配置运行 asp+access 网站
  4. Ueditor1.4.3.3+springMvc+maven 实现图片上传
  5. 稻壳图文模块调不出html代码
  6. ajax+ashx
  7. 【转载】 postman使用教程
  8. Matlab稀疏矩阵
  9. 微软职位内部推荐-Principal DEV Manager for Bing Client
  10. 自己生成非官方iPhone toolchain的头文件
  11. 关于时间对象Date()
  12. python 多线程和多进程的区别 mutiprocessing theading
  13. H5+JS+JQuery+ECharts实现异步加载
  14. Python--urllib3库详解1
  15. Redis开启远程登录连接
  16. centos7.4下的python3.6的安装
  17. Android总结篇系列:Activity启动模式(lauchMode)
  18. Jenkins-client模式配置
  19. ionic2 调用 cordova非本地化native 插件方法
  20. Java IO的一些列子

热门文章

  1. Spring - IoC(1): Spring 容器
  2. 【SPOJ-QTREE】树链剖分
  3. noip2014 提高组
  4. react框架
  5. ssh 免密码登录【用】
  6. 入园的第一篇--where、where
  7. javascript中a标签把href属性设置为“javascript:void(0)”还是会打开空白页面的问题
  8. Selenium 多窗口元素定位处理
  9. OC学习篇之---代理模式
  10. Unicode(UTF-8, UTF-16)令人混淆的概念----我看完了 不错