DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   MS SQL (http://www.daniweb.com/forums/forum127.html)
-   -   About Mssql Server connection (http://www.daniweb.com/forums/thread48990.html)

black_hawk Jun 30th, 2006 11:08 am
About Mssql Server connection
 
Hi friends,
As title refers, my problem is related with connection to the sql server. I use MSSQL Express 2005. My program, that is written in php, tries to connect to the server but the connection is failure.I didn't create an account from login under root and my connection type is Windows authentication.I tried to login with various combinations like below:
[php]
//1
mssql_connect("localhost","blackhawk","111");

//2
mssql_connect("SQLEXPRESS","blackhawk","111");

//3
mssql_connect("127.0.0.1","blackhawk","111");

//4
mssql_connect("SQLEXPRESS","sa","sa");

//5
mssql_connect("localhost","root","111");
[/php]

But the connection is not realized. Is there anyone to help me about this?

Server name :BLACKHAWK/SQLEXPRESS
Connection :BLACKHAWK/Blackhawk


All times are GMT -4. The time now is 3:49 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC