Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-01-2008, 03:03 PM
Junior Member
 
Join Date: Apr 2008
Posts: 4
Default DB Mssql

What seems to be the problem with my code below?

Code:
<?
require_once 'Zend/Db/Adapter/Pdo/Mssql.php';

$db = new Zend_Db_Adapter_Pdo_Mssql(array(    
'host'     => '10.0.0.9',    
'username' => 'sa',    
'password' => '',    
'dbname'   => 'myDb'
));

$sql = 'SELECT CustName FROM Customer';
$result = $db->fetchAll($sql, 2);

?>

I've already enable mssql via the zendcore admin gui and have restarted Apache.

I get the following error message:

'The mssql driver is not currently installed' in C:\Program Files\Zend\Apache2\htdocs\Zend\Db\Adapter\Pdo\Abst ract.php:104
Stack trace:



I have the following settings:

Zend Core Version 2.5.0
PHP Version 5.2.4
Zend Engine Version 2.2.0
Server API cgi-fcgi
PHP Configuration File C:\Program Files\Zend\Core\etc\php.ini


Web Server


Server Name localhost
Server Software Apache/2.2.4 (Win32)
OS Version Microsoft Windows XP


Server Configuration


Server Port 8080
Connection Timeout 300
Keepalive Timeout 300
Server Root C:\Program Files\Zend\Apache2
Server Configuration File C:\Program Files\Zend\Apache2\conf\httpd.conf
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-01-2008, 06:51 PM
Junior Member
 
Join Date: Apr 2008
Posts: 4
Default

I'm also gettting an

"php_pdo_mssql Extension Library Missing!" in the Zend Core GUI under extensions.

Anyone have any clues?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-02-2008, 11:07 AM
Junior Member
 
Join Date: Jun 2007
Location: Barcelona
Posts: 8
Default

Quote:
Originally Posted by icarrion View Post
I'm also gettting an

"php_pdo_mssql Extension Library Missing!" in the Zend Core GUI under extensions.

Anyone have any clues?
Which version of the Zend Framework are you using?
__________________
------------------
Loris Candylaftis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-02-2008, 04:03 PM
Junior Member
 
Join Date: Apr 2008
Posts: 4
Default

Quote:
Originally Posted by loloziberlo View Post
Which version of the Zend Framework are you using?
It's in my original post.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-02-2008, 07:48 PM
Junior Member
 
Join Date: Apr 2008
Posts: 4
Default

Ok for those who are struggling with this problem I figured out the solution.

php_pdo_mssql.dll is no longer supported. If you wish to connect to MS Sql Server on a windows server the recommended is to use phpodbc. ADODB is pretty solid choice IMO.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:14 PM.