首页 > 数据库技术 > 详细

TOleDBMSSQLConnectionProperties驱动MSSQL数据库

时间:2017-12-16 10:45:25      阅读:305      评论:0      收藏:0      [点我收藏+]

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;

 

TOleDBMSSQLConnectionProperties驱动MSSQL数据库

原文:http://www.cnblogs.com/hnxxcxg/p/8045858.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!