zoukankan      html  css  js  c++  java
  • TOleDBMSSQLConnectionProperties驱动MSSQL数据库

    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;

  • 相关阅读:
    gdbinit理解
    debug套路
    node 版本升级
    工作方式
    vscode 插件编写
    函数闭包与装饰器
    高阶函数与递归
    函数嵌套及作用域
    函数
    文件处理
  • 原文地址:https://www.cnblogs.com/hnxxcxg/p/8045858.html
Copyright © 2011-2022 走看看