Proper way to set up SQL users



Hi,
I have an application(C#) that connects to SQL Server 2005 which is
ran on remote PC (LAN). It needs two different connection - from main
app (running under user account) and from windows service(which is
currently running under system account).
Currently SQL server has Windows authentication only.To allow both
kinds of connection I added a domain user that runs app to the
SQLServer2005MSSQLUser$XXXX$MSSQLSERVER group on the server PC and I
added special user to the SQL server logins for a windows service
connection - DOMAIN\USER$. Unfortunately I cannot add DOMAIN\USER$ to
windows users group.
The same goal can be achieved if I install windows service under User
Account - in this case it is enough to add a user to
SQLServer2005MSSQLUser$XXXX$MSSQLSERVER group. The bad thing is that
in order to switch users on app machine I would need to reinstall a
service under different account.
Another way to go is to use SQL authentication in SQL server and send
special username/pwd in connecting string.
The big problem here is that we do not want to enforce it in a case
when customer already has SQL server installed and it does not allow
SQL auth.
So, we want to have one simple way to connect to SQL server which will
work in any cases and can be setup during the app installation with a
minimum user involvement.
What is the best practices here, if any?

Thanks,
Olegus

.



Relevant Pages

  • Getting to the bottom of MSDE network connection problems ...
    ... but other than that it is MSDE 2000 with sp3a already applied. ... I've finally figured out the connection problems associated with this, ... and it seems the problems are due to Windows XP and not MSDE. ... the enterprise/standard versions of SQL server won't install ...
    (microsoft.public.sqlserver.msde)
  • Re: Remote connection failed
    ... If you are going over a remote connection or are not logging ... into the domain where SQL Server is then no, Windows ... authentication won't work. ...
    (microsoft.public.sqlserver.connect)
  • Re: Problems Using Laptop As SQL Server - Log On Failed
    ... > connected to the network and no password for windows. ... > the name of the laptop as name of the SQL Server. ... > trusted SQL Server connection ... you have to change the authentication mode... ...
    (microsoft.public.sqlserver.msde)
  • Re: General Network Error
    ... connection, but you are not properly prepared to reopen a connection when ... retrieves data from a Sql Server 2000 instance, manipulates that data, ... The app works fine on the emulator during development. ... "General Network error. ...
    (microsoft.public.dotnet.framework.compactframework)
  • ADO.NET 2.0 & MSDE & Win98
    ... Framework 2.0 which must be deployed on Windows 98 platform. ... The MSDE will ... be installed on Win98 as the SQL Server to which the app will connect. ...
    (microsoft.public.dotnet.framework.adonet)

Loading