Cannot connect to db using public user

K

Kin

Pls Help

I open a connection to remote sql server

Connection String:
Provider=SQLOLEDB.1;User Id='user';Password='pwd';Initial
Catalog='database';Data Source='remoteServer,port'

when user is public user, the iis always return error, with script timeout
but when user is 'sa' or 'dbo', iis return the right result to me


can anyone explain what problem i have?
 
M

Michael Nemtsev, MVP

Hello Kin,

Does you public user have access to DB for reading?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


K> Pls Help
K>
K> I open a connection to remote sql server
K>
K> Connection String:
K> Provider=SQLOLEDB.1;User Id='user';Password='pwd';Initial
K> Catalog='database';Data Source='remoteServer,port'
K> when user is public user, the iis always return error, with script
K> timeout but when user is 'sa' or 'dbo', iis return the right result
K> to me
K>
K> can anyone explain what problem i have?
K>
 
D

dogkin via DotNetMonster.com

Dear Michael,

Sure.
I have test the user right from Query Analyzer.
the public use can access the DB and select / update tables that allow.



Hello Kin,

Does you public user have access to DB for reading?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

K> Pls Help
K>
K> I open a connection to remote sql server
K>
K> Connection String:
K> Provider=SQLOLEDB.1;User Id='user';Password='pwd';Initial
K> Catalog='database';Data Source='remoteServer,port'
K> when user is public user, the iis always return error, with script
K> timeout but when user is 'sa' or 'dbo', iis return the right result
K> to me
K>
K> can anyone explain what problem i have?
K>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top