Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting up MSSQL (with PHP)

Status
Not open for further replies.

oohoohoohooh

Programmer
Apr 30, 2005
55
GB
Hi, I followed the following tutorial to setup IIS with MS SQL Server DE here:


I also installed the web data administrator fine. Finally I removed the ; before extension=php_mssql.dll in the PHP config file.

Until now everything seems to be working fine but my problem lies with connecting to the database. What is the servername parameter you pass in mssql_connect? Also what is the username and password? I managed to add a database ok using the web data administrator but when I clicked create new user (in the users section of my database) it only gave me the option to put the username which I thought was strange but I entered the username and clicked submit but it returned an asp error.

I assumed the server might be the server indicated in the SQL Server Service Manager. I also put the username as dbo (since that user already existed - I noticed it from the web data administrator) and left the password blank since no password was indicated but again no luck.

I'd appreciate if someone could help. Thanks

Note: I did post this in the PHP forum but they told me to post it here. Thanks
 
The server name parameter will be what ever name the web server needs to use to talk to the SQL Server. Either the machine name or the full FQDN (server.domain.com).

The username and password will be what ever accout you setup on the SQL Server and gave access to the database you want to access. In Enterprise Manager you'll see the accounts under the Server > Security > Logins.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(Not quite so old any more.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top