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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL db login failed

Status
Not open for further replies.

FranS37

Programmer
Joined
Jun 6, 2002
Messages
59
Location
US
I created a page in my fp web to display the contents of a table in a SQL database. I used INSERT, DATABASE, RESULTS and followed the steps in the wizard. To connect, I used an odbc connection that tests fine. I have front page extensions installed. I publish the web, but when I view the page in IE, I see a message that says "[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'servername\IUSR_servername', where servername is the name of the SQL server. Any help?

Thanks.

 
Thanks for your reply. I don't have a hosting company yet, I'm running this locally with IIS.
 
OK - sorry - you said you publish the web. This might be better in an ASP forum or server forum. Do you have the folder to run ASP? Is your connection string something like this:
strConnString = "driver={SQL Server};server=server_name_here;uid=user_id_here;pwd=password_here;database=db_name"

__________________________
Corey

 
I added the userid and password to the connection string in the global.asa file and it worked. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top