Re: Access to sql2005
- From: Hans Kesting <news.2.hansdk@xxxxxxxxxxxxxxx>
- Date: Wed, 30 May 2007 08:41:53 +0000 (UTC)
I have a website in VS2005 C#. Access to server is no problem in debug
mode.
Access in run mode gives an errror. What exactly do I need to do to
enable this?
Thanks and regards,
VK
How are you connecting to the database? I'm guessing "integrated security".
When you run the site in the debugger, it could run under your account,
which has access rights to the database.
When you run it "for real" it runs under a local ASPNET (or NETWORK SERVICE)
account, which isn't known to SqlServer.
Solution: connect to SqlServer using a specified sqlserver account.
(note: SqlServer needs to be set up to accept both integrated secirity
and local accounts - which isn't the default)
Hans Kesting
.
- References:
- Access to sql2005
- From: vaishalikedar
- Access to sql2005
- Prev by Date: Re: Dynamically Created Gridview - Paging events are not fired
- Next by Date: Re: Issue with double redirect
- Previous by thread: Re: Access to sql2005
- Next by thread: Global Var
- Index(es):
Relevant Pages
|