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

When I try to connect to my sqlserv

Status
Not open for further replies.

sthmpsn1

MIS
Sep 26, 2001
456
US
When I try to connect to my sqlserver using .net framework I get an http error code 401 unauthorized. If I use this same string with asp/vbscript it works fine. here is my connection string.
any help would be great!

"Provider=SQLOLEDB;Data Source=AM1ST_FS1;Initial Catalog=HRINFO;User
Id=sa;Connect Timeout=15;"

Scott
 
401 unauthorized is a web server security error, not a connection error.

Sounds like you need to set the permissions on the directory where the .aspx file is so that it can be accessed.

If it were the database refusing you, the page would load, and you'd get an application error stating that the connection failed for whatever reason.

:)
paul
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top