944,035 Members | Top Members by Rank

Ad:
  • MS SQL Discussion Thread
  • Unsolved
  • Views: 1503
  • MS SQL RSS
Dec 6th, 2007
0

MSSQL - MySql Database Connectivity

Expand Post »
Hi,

A third party development company is creating a third party application for us in PHP and uses a MYSQL database. The app is an extension of our website which is developed in .NET and uses a MSSQL 2005 database. There are some cases where the two databases require connectivity since a few fields need to relate. We are having issues connecting the two databases on the server and after reading some forums have identified it to be a configuration issue.

I was wondering if anyone could be of any help in solving this issue, or lead us in the right direction (i.e. where to begin, forums, etc.). Here is a description and some questions from our developer:

---------------------------

We are trying to get a PHP application (.php pages running on the webserver which is the same physical machine as the MS SQL server) to connect to the database (MS SQL server).

In order to facilitate this, php.ini was configured in the following manner:
mssql.secure_connection = ON
extension=php_mssql.dll

We ensured that IIS/Windows was setup properly too:
\System32\ and \php both contain ntwdblib.dll ver 2000.80.194.0
enable pipe name protocol [Default was disable]
enable TCP/IP IP1 [Default was disable]

MS SQL Server is set to Windows AND SQL server authentication (Mixed mode).

When the PHP application attempts to connect to the database by using:
mssql_connect('localhost', '<userid>', '<password>')

produces this error message:
Login failed for user 'MAIL\IUSR_<computername>'. (severity 14)

Why doe this occur? Why is this IUSR userid being used? the userid we sent in with PHP was a sql userid that we know works (we use it with .NET, and to connect to the database remotely). Also, why is it using the MAIL domain? In anycase, shouldn't this IUSR userid work? it's a valid windows account, and mixed mode authentication is allowed.

-------------------------

Any assistance would be greatly appreciated!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sb2008 is offline Offline
1 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MS SQL Forum Timeline: New to MySql.....Help
Next Thread in MS SQL Forum Timeline: how to retrieve next unused number from table





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC