Welcome Guest, Not a member yet? Register   Sign In
How to connect to Microsoft Sql Server 2005 with PHP
#2

[eluser]timpisti[/eluser]
Hello.

You may try to this

1: Check the connection with another software in windows (like mssql management studio)
2: In most cases, the windows autentication does'nt work thru PHP.
a: Check the PHP.ini MSSQL values. You may find a point similar to: 'enable windows autentication...', or something like that. Enable it.
b: Try this
mssql_connect('SQL5.ZNETINDIA.NET') or die(mssql_get_last_message());
If you connect with windows autentication does'nt need the user and pass.

3: Create a normal SQL user - this is worked for me, and a lot of windows IT wizard can't find ANY solution to demonstrate a working MSSQL setup in this environment:

ISA server auth - Windows 2008 server - MSSQL 2008 - IIS 7.0 - PHP 5.2
Its only worked with SQL user. Not the windows authenticated.


Messages In This Thread
How to connect to Microsoft Sql Server 2005 with PHP - by El Forum - 10-13-2009, 05:18 AM
How to connect to Microsoft Sql Server 2005 with PHP - by El Forum - 10-13-2009, 05:34 AM
How to connect to Microsoft Sql Server 2005 with PHP - by El Forum - 10-13-2009, 09:17 AM
How to connect to Microsoft Sql Server 2005 with PHP - by El Forum - 10-13-2009, 09:27 AM
How to connect to Microsoft Sql Server 2005 with PHP - by El Forum - 10-13-2009, 07:19 PM
How to connect to Microsoft Sql Server 2005 with PHP - by El Forum - 10-19-2009, 10:34 AM
How to connect to Microsoft Sql Server 2005 with PHP - by El Forum - 10-22-2009, 02:40 AM
How to connect to Microsoft Sql Server 2005 with PHP - by El Forum - 01-05-2010, 08:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB