Results 1 to 5 of 5

Thread: Is NEW MSSQL Driver SQLSRV compatible with ADODB

  1. #1
    Join Date
    Jun 2011
    Posts
    55

    Is NEW MSSQL Driver SQLSRV compatible with ADODB

    My question is not that big. I just want to know that is ADODB is compatible with new MSSQL Driver SQLSRV? I have connected in the following way. Just check it for me whether it is correct or not?

    Code:
    $db = ADONewConnection($config['db_type']);
    $rs = $db->PConnect($config['db_host'], $config['db_user'], $config['db_pass'], 
    $config['db_name']) or die("Unable to connect!");

  2. #2
    Join Date
    May 2009
    Posts
    543

    Re: Is NEW MSSQL Driver SQLSRV compatible with ADODB

    Yes, ADODB is compatible with new MSSQL Driver SQLSRV. It easily works with new MSSQL driver. I would like to let you know that the type will be 'mssqlnative'. The connection code which you have mentioned is correct. According to be it should work fine. You can do your projects smoothly. If you want to confirm then you can visit to the official website and check by yourself.

  3. #3
    Join Date
    May 2009
    Posts
    529

    Re: Is NEW MSSQL Driver SQLSRV compatible with ADODB

    If you face any troubleshooting like Is NEW MSSQL Driver SQLSRV is not working with ADOB then I have suggestions for you. Remove all addons and install it via web platform. After that everything will be ok. Know you can connect MSSQL DB. The actual problem is that my website does not connect the MSSQL. If you connect it via ADODB then it will work smoothly. The newer versions of ADODB support the SQLSRV server.

  4. #4
    Join Date
    Apr 2009
    Posts
    569

    Re: Is NEW MSSQL Driver SQLSRV compatible with ADODB

    I think there is a problem in the code of connection. The code seems to be incomplete. If you follow that, it won’t work whether your other things are compatible or not. Just use the code that I have done it for you.
    Code:
    $db = ADONewConnection($config['db_type']);
    $db->locale = 'us_english';
    $db->debug = $_config['dbdebug'];$rs = $db->PConnect($config['db_host'], 
    $config['db_user'], $config['db_pass'], $config['db_name']) 
    or die("Unable to connect!");

  5. #5
    Join Date
    Apr 2009
    Posts
    488

    Re: Is NEW MSSQL Driver SQLSRV compatible with ADODB

    If your NEW MSSQL Driver SQLSRV is not compatible with ADODB then you will get the below error.
    Code:
    function ADODB_mssqlnative(){ if ($this->debug) { error_log("
    ");
                sqlsrv_set_error_handling( SQLSRV_ERRORS_LOG_ALL );
                sqlsrv_log_set_severity( SQLSRV_LOG_SEVERITY_ALL );
                sqlsrv_log_set_subsystems(SQLSRV_LOG_SYSTEM_ALL);
                sqlsrv_configure('warnings_return_as_errors', 0);
            } else {
                sqlsrv_set_error_handling(0);
                sqlsrv_log_set_severity(0);
                sqlsrv_log_set_subsystems(SQLSRV_LOG_SYSTEM_ALL);
                sqlsrv_configure('warnings_return_as_errors', 0);
            }
    }

Similar Threads

  1. Types of Cursors in ADODB
    By Jagdish Gada in forum Software Development
    Replies: 4
    Last Post: 28-11-2009, 01:36 PM
  2. Lock Type in ADODB of Visual Basic 6.0
    By REDBULL in forum Software Development
    Replies: 4
    Last Post: 28-11-2009, 01:04 PM
  3. ADODB 0x80020009 error problem
    By Halyn in forum Software Development
    Replies: 3
    Last Post: 28-08-2009, 06:50 PM
  4. ADODB Connection String with password
    By Xan in forum Software Development
    Replies: 2
    Last Post: 21-04-2009, 03:29 PM
  5. Opening .DBF file using ADODB
    By Pratap Gad in forum Software Development
    Replies: 3
    Last Post: 21-04-2009, 02:52 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,111,237.78071 seconds with 17 queries