all groups > sql server connect > october 2005 >
You're in the

sql server connect

group:

SQL server does not exist or access denied



RE: SQL server does not exist or access denied Enric
10/20/2005 9:36:13 AM
sql server connect: NT AUTHORITY\SYSTEM doesn't exists in sql server
The user that have the responsability from the asp page for do update have
the fine permissions on the selected table?

[quoted text, click to view]
SQL server does not exist or access denied Jan Timmer
10/20/2005 1:33:54 PM
Hello,

We have two applications that connect to three SQL databases on another
machine. Both applications access and update the databases.
One application is a web application (ASP.NET) the other one is a Windows
service.
The web application runs fine. It accesses and updates all three databases
The Windows service is supposed to access and update two of the three
databases. The tables in one database are accessed and updated correctly. In
the other database the only table there is can be selected, but when ik
comes to update, a .NET exception is generated (SQL server does not exist or
access denied).
When I take a look at the SQL profiler I see that the Windows Service is
logged in as "System" with a login name "NT AUTHORITY\SYSTEM". When I take a
look at the users in the database, there is no such user.

What is the best way for me to go about to solve this problem?

Thanks in advance.

Jan







Re: SQL server does not exist or access denied Jan Timmer
10/21/2005 9:56:31 AM
Enric,

[quoted text, click to view]

I know but nevertheless the SQL profiler shows a user SYSTEM with loging
name NT AUTHORITY\SYSTEM, for the Windows Service.

[quoted text, click to view]

Yes.


Jan


Enric <Enric@discussions.microsoft.com> schreef in berichtnieuws
71774958-F12C-46CA-B13F-39A940CD8015@microsoft.com...
[quoted text, click to view]



Re: SQL server does not exist or access denied Sue Hoegemeier
10/24/2005 6:33:21 PM
It's not clear what's running on what box but you can add
the login if you need to:
exec sp_grantlogin 'NT Authority\System'
go
use YourDB
go
exec sp_grantdbaccess 'NT Authority\System'
and whatever access it needs in whichever databases.

That's not necessarily the best way to go about it though.
It sound like your windows service is going to access
network resources so you would want to run under a domain
account - use User for the Account property. Then the domain
account that the service runs under is the account you want
to give the appropriate login and database access.

-Sue

On Fri, 21 Oct 2005 09:56:31 +0100, "Jan Timmer"
[quoted text, click to view]
Re: SQL server does not exist or access denied Jan Timmer
10/25/2005 10:53:23 AM
Sue,

Thanks for your answer.
Though, as you stated, not necessarily the best way, we will try your
solution.

Jan


Sue Hoegemeier <Sue_H@nomail.please> schreef in berichtnieuws
geuql15mnv5rlkrkj0dn9lt5300cc9aqk0@4ax.com...
[quoted text, click to view]

AddThis Social Bookmark Button