ServerSide Post Data MSSQL with ODBC13 System DSN

ServerSide Post Data MSSQL with ODBC13 System DSN

acidburn78acidburn78 Posts: 10Questions: 6Answers: 0
edited November 2016 in Free community support

Hello All,

i'm using ServerSide Post Data and i would like to use the SYSTEM DSN with ODBC13 driver!

Now i'm using this as sql_details

// SQL server connection information
$sql_details = array(
    'user' => '',
    'pass' => '',
    'db'   => '',
    'host' => ''
);

in the PDO-Connection String it should be looking like this
new PDO ( "odbc:<DSN_Name>", 'user', 'pass')

How can i set the DSN in the sql_details that the PDO-Connection and the rest in ssp.class.php will work?

Replies

  • allanallan Posts: 63,819Questions: 1Answers: 10,517 Site admin

    The demo SSP class is MySQL specific. You would need to modify the DSN in the file as you mention, but there is a good chance you might also need to modify the SQL that it generates to have it work with SQL Server.

    Allan

This discussion has been closed.