<p>The SQL Server Express 2008 setup allow you to assign different user account for each service. </p>

<p>For a development environment, would you use a domain user, local user, NT Authority\NETWORK SERCVICE, NT Authority\Local System or some other account and why? </p>

[{'answer_id': 63799, 'author': 'blowdart', 'author_id': 2525, 'author_profile': 'https://Stackoverflow.com/users/2525', 'pm_score': 4, 'selected': False, 'text': "<p>It depends.</p>\n\n<ul>\n<li>Local System - Never, it's too high\na privilege. </li>\n<li>Network Service -\nPerhaps, if you need to connect to\nnetwork resources, but that's\ndoubtful. </li>\n<li>Local Service - Probably\nthe best choice, limited privileges,\ndo not unlock network connections</li>\n<li>Local interactive user? Does it\ntruly need to have login rights, or\nact as a user? </li>\n<li>Domain user? Goodness\nno, not unless you're accessing\nnetwork drives from within it; if\nSQL runs amok then an attacker is\nauthenticated against the domain.</li>\n</ul>\n"}, {'answer_id': 63871, 'author': 'Joel Coehoorn', 'author_id': 3043, 'author_profile': 'https://Stackoverflow.com/users/3043', 'pm_score': -1, 'selected': False, 'text': '<p>Whatever it wants to use as default.  Changing that is just asking for trouble later.</p>\n'}, {'answer_id': 63944, 'author': 'Joe Kuemerle', 'author_id': 4273, 'author_profile': 'https://Stackoverflow.com/users/4273', 'pm_score': 6, 'selected': True, 'text': '<p><strong>Local System</strong> is not recommended, it is an administrator equivalent account and thus can lead to questionable coding that takes advantage of administrator privileges which would not be allowed in a production system since security conscious Admins/DBA\'s really don\'t like to run services as admin.</p>\n\n<p>Depending on if the server instance will need to access other domain resources or not should determine which type of low privilege account it should run under.  </p>\n\n<p>If it does not need to access any (non-anonymous) domain resources than I normally create a unique local, low privilege account for it to run under in order to gain the additional security benefit of not having multiple services running in the same identity context.  <a href="http://msdn.microsoft.com/en-us/library/ms143504%28v=sql.105%29.aspx" rel="noreferrer">Be aware that the Local Service account is not supported for the SQL Server or SQL Server Agent services.</a> </p>\n\n<p>If it does need to access non-anonymous domain resources then you have three options: </p>\n\n<ol>\n<li>Run as <strong><a href="http://msdn.microsoft.com/en-us/library/ms143504%28v=sql.105%29.aspx" rel="noreferrer">Network Service</a></strong> which is also a low privilege account but one that retains the computers network credentials. </li>\n<li>Run under a Local Service Account</li>\n<li>Run under a custom domain account with low local privileges.  One advantage to running under the developers account is that it is easier to attach debuggers to processes in your own identity without compromising security so debugging is easier (since non-Admin accounts do not have the privilege to attach a debugger to another identities process by default).  A disadvantage to using another domain account is the overhead of managing those accounts, especially since each service for each developer should ideally have unique credentials so you do not have any leaks if a developer were to leave.</li>\n</ol>\n\n<p>Most of what I tend to do does not require the service to access domain resources so I tend to use unique local low privilege accounts that I manage.  I also run exclusively as a non-admin user (and have done so under XP SP2, Server 2003, Vista and Server 2008 with no major problems) so when I have cases where I need the service to access domain resources then I have no worries about using my own domain credentials (plus that way I don\'t have to worry the network admins about creating/maintaining a bunch of non-production domain identities).</p>\n'}, {'answer_id': 19121473, 'author': 'Schrodo_Baggins', 'author_id': 1895944, 'author_profile': 'https://Stackoverflow.com/users/1895944', 'pm_score': 2, 'selected': False, 'text': '<p>MS now has a good article on this:\n<a href="http://msdn.microsoft.com/en-us/library/ms143504(v=sql.105).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms143504(v=sql.105).aspx</a></p>\n\n<p>They state that Local Service is not allowed for SQL Server Engine.\nPersonally, I use Local System just to avoid issues during development, but in production, best practice is to create a domain level service account with just the permissions it needs to get the job done.</p>\n'}]
['https://Stackoverflow.com/questions/63749', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/966/']