MS SQL

Diskussions related to the development of PhpLogCon

Google Ads


MS SQL

Postby SMiTTY » Wed Jan 25, 2012 9:06 pm

So I spent a few hours last night trying to get MS SQL Source added. No matter what I did, it wouldn't take.

I'm able to use tsql or isql and everything is fine. I tried using FreeTDS via ODBC and no joy. Modified classes/logstreamconfigpdo.class.php to manually add in the $mydsn, still no joy. Debug was turned on and everything looked proper.

I finally added the following to classes/logstreampdo.class.php

$this->_dbhandle = new PDO ("dblib:host=10.xx.x.xxx:14332;dbname=SyslogDB","user","password");

And BAM, it started working. Would be great to get this dialed in a bit better if possible.
SMiTTY
New
 
Posts: 6
Joined: Wed Jan 25, 2012 8:59 pm

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Google Ads


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 0 guests

cron