Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82205

Need help - ssp.class.php for MSSQL

$
0
0

Hi All

I am using datatable server side processing and trying to connect to a MSSQL database. However, have been struggling with ssp.class.php for MSSQL.
I have modified the class as below:
static function sql_connect ( $sql_details )
{
try {
$db = @new PDO('sqlsrv:Server={$sql_details['host']};Database={$sql_details['db']}',$sql_details['user'],$sql_details['pass'],array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION ));
}
catch (PDOException $e) {
self::fatal(
"An error occurred while connecting to the database. ".
"The error reported by the server was: ".$e->getMessage()
);
}
return $db;
}

Now, I am getting an AJAX 500 error. Could someone please let me know if the changes I did to the ssp.class.php are correct and the how can the AJAX error be rectified? Please do let me know incase more details are needed from my end.

Thanks in advance!

Regards,
Pooja


Viewing all articles
Browse latest Browse all 82205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>