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

connection problem 1

Status
Not open for further replies.

minckle

Programmer
Mar 17, 2004
142
0
0
GB
im creating an web app using standard asp. my connection string is as follows:

Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Provider=SQLOLEDB;Data Source=localhost;Initial Catalog=Q2A;Trusted_Connection=yes;"

When i load the site via the localhost everything runs fine, but when i load the site externally i get the folloing error:

Microsoft OLE DB Provider for SQL Server error '80040e09'
INSERT permission denied on object 'tblEnquiry', database 'Q2A', owner 'dbo'.

The IUSR_ account is registered as a user and has the neccessary permissions to run an INSERT.

Am i missing something basic?? any 1 got any ideas????
thanks

 
Plz define "load externally". Same database, but from another web server?

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
Hi, yeh its the same database and also the same web server

when i open IE on the server where the DB and the webserver is n goto 'Localhost/webpage1.asp' the connection works fine. but when i try it from another computer ' i get the permissions error

im using exactly the same webpage,database etc

hope this helps !!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top