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

MS SQL Connection Help

Status
Not open for further replies.

anon47

Programmer
Nov 28, 2006
80
US
Ok first sql is new to me. I am trying to get an asp page to connect to the the server but am having problems. Any thought on this would be great.

<%
dim conn, rs, sql, intTelephone, intMobile
connectstr = "Provider=SQLOLEDB;DATABASE=AS_Data;SERVER=SQLEXPRESS; Integrated Security=SSPI;"

sql = "SELECT * FROM [Projects]"
rs.Open
%>
 
One more thing its giving this error:

HTTP Error 403.2 - Forbidden: Read access is denied.
Internet Information Services (IIS)

Thanks for all your help in advance
 
try forum333

I don't do any programming whatsoever

Ignorance of certain subjects is a great part of wisdom
 
Thanks Alex I think it going to be a permission issue via SQL Express but not for certain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top