Re: Does my Windows service need table permissions?

Tech-Archive recommends: Fix windows errors by optimizing your registry



What name of your Windows service app is does not matter, what user account is used to run the Windows service app matters. The account that runs the service can be local machince account (system, local service, network service...) or local user account, or domain user account. That account must be granted access to the SQL Server and the permission to run the SP.

"Mark" <mkhueb@xxxxxxxxx> wrote in message news:%23xUxyDmNKHA.1268@xxxxxxxxxxxxxxxxxxxxxxx
I have a Windows service that executes a stored procedure. The stored procedure updates or inserts records in a SQL Server 2005 table. A special user, PollX, was created for this database having a dbo role. I added PollX to the permissions of the stored procedure with Control, Execute, and Take Ownership privledges. Currently PollX has been added to the permissons of the table and the Windows service is running without problems. The name of my Windows service is PollX too. Do I really need to add PollX to the permissions of the table in order for the Windows service to be able to make updates to this table without running into security problems? I suspect that I don't. I'm confused about what permissions are needed in order for my Windows service to execute the stored procedure and whether the name of this SQL Server special user needs to be the same name as my Windows service. Any advice about this would be appreciated. Thanks in advance!


.



Relevant Pages

  • Re: Windows Service Error
    ... Most likley the windows service does not have write permissions on that ... I suggest you have it run under a user account that does have the necessary ... > I have a windows service to do a "task" on my local box from ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Windows Service - Event Log
    ... Every Windows Service runs under a specific user account, ... either by the developer when creating the installation for the ... there is no single user account under which all Windows Services run. ... sufficient privileges to write/read to/from the eventlog, ...
    (microsoft.public.dotnet.languages.csharp)
  • What permissions are needed for windows service to do C# impersonation when started under a user acc
    ... What permissions are needed for windows service to do C# impersonation when ... I have a windows service that impersonates another account fine when it runs ... under system account but fails to impersonate when run under a user account. ... What permissions must the windows service user account have inorder to do ...
    (microsoft.public.win2000.networking)
  • What permissions are needed for windows service to do C# impersonation when started under a user acc
    ... What permissions are needed for windows service to do C# impersonation when ... I have a windows service that impersonates another account fine when it runs ... under system account but fails to impersonate when run under a user account. ... What permissions must the windows service user account have inorder to do ...
    (microsoft.public.win2000.security)
  • What permissions are needed for windows service to do C# impersonation when started under a user acc
    ... What permissions are needed for windows service to do C# impersonation when ... I have a windows service that impersonates another account fine when it runs ... under system account but fails to impersonate when run under a user account. ... What permissions must the windows service user account have inorder to do ...
    (microsoft.public.win2000.general)