Install problems with MSSQL 2005

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
dbenisch
Posts: 2
Joined: Thu Nov 30, 2006 8:27 pm

Install problems with MSSQL 2005

Post by dbenisch »

Hi All,

I have looked over the forums and was not able to find the answer to a connectivitiy issue that I have ran into when trying to run the phpMyFAQ 1.6.6 Installation script. First here is my configuration:

OS: Windows XP SP2
Web: IIS
PHP: 5.0
Database: Microsoft SQL 2005

I have created a database called FAQ and I specify the SA account but it returns the following:

PHP Warning: mssql_pconnect() [function.mssql-pconnect]: Unable to connect to server: localhost\faq in D:\Software\FAQ\inc\mssql.php on line 72 PHP Warning: mssql_pconnect() [function.mssql-pconnect]: Unable to connect to server: localhost\faq in D:\Software\FAQ\inc\mssql.php on line 72 PHP Warning: mssql_result(): supplied argument is not a valid MS SQL-result resource in D:\Software\FAQ\inc\mssql.php on line 345

Any thoughts?


Thanks in advance to whomever can help.
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
you need first to check the network visibility of PMF and MS SQL and then if inc/data.php contains the right data about hostname, port and credentials: read here how to build a sample page to test when your connection to the DB is available to PMF.

Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
dbenisch
Posts: 2
Joined: Thu Nov 30, 2006 8:27 pm

Post by dbenisch »

Thanks for the reply. I ended up flattening and rebuilding my box and got it all to work. Nice Job on the product!

Thanks
Post Reply