Cannot connect via Web Application...
- From: "IV" <Imtiaz.Vohra@xxxxxxxxxxx>
- Date: 10 Jan 2007 16:54:33 -0800
I am using SQLServer 2000, Visual Studio 2003, C#.
I am writing a web part which requires me to connect to a local sql
database.
I wrote a class which handles the connection and reading of the table.
When I try to call .Open on the connection, it fails, the exception is
something to do with permission.
I used the same class to connect with a console application and a
windows application, and it works fine. I am able to connect and read
the table.
Can anyone shed some light on what is the difference between
connecting/accessing to a database via Web Application as opposed to a
Non-Web App.
TIA
.
- Follow-Ups:
- Re: Cannot connect via Web Application...
- From: Roger Wolter[MSFT]
- Re: Cannot connect via Web Application...
- Prev by Date: Re: can not connect to remote SQL Express 2005
- Next by Date: Re: Cannot connect via Web Application...
- Previous by thread: Re: can not connect to remote SQL Express 2005
- Next by thread: Re: Cannot connect via Web Application...
- Index(es):
Relevant Pages
|