﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 11:40:14 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context</title><link>http://www.sqlservercentral.com/Forums/Topic550938-146-1.aspx</link><description>Thanks -- I had this problem too!  The company I work for has things screwed down tight such that the public group can't connect to the db.</description><pubDate>Wed, 16 Mar 2011 13:33:30 GMT</pubDate><dc:creator>Holy One</dc:creator></item><item><title>RE: The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context</title><link>http://www.sqlservercentral.com/Forums/Topic550938-146-1.aspx</link><description>I found the solution to this problem.use msdbgrant connect to guestgoAaron</description><pubDate>Mon, 24 May 2010 07:57:10 GMT</pubDate><dc:creator>Aaron.Christenson.ctr</dc:creator></item><item><title>RE: The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context</title><link>http://www.sqlservercentral.com/Forums/Topic550938-146-1.aspx</link><description>Hi Bhuvnesh,Did any of the suggestions help you to solve your problem?</description><pubDate>Sat, 05 Dec 2009 06:35:16 GMT</pubDate><dc:creator>Ignacio A. Salom Rangel</dc:creator></item><item><title>RE: The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context</title><link>http://www.sqlservercentral.com/Forums/Topic550938-146-1.aspx</link><description>[quote][b]Ken_R_Vickers (5/12/2009)[/b][hr]If you have SQL Server 2008 (100) Web Edition then in sp_add_jobstep do not supply @database_user_name or in the GUI supply a run as user as this will result in a spurious error indicating the user does not have permission!You just have to run with SQL Agents permission set.[/quote]It works! I have SQL 2008 Standard Edition. I don't supply that parameter, and the job run with this user NT AUTHORITY\SYSTEM</description><pubDate>Sat, 05 Dec 2009 01:29:11 GMT</pubDate><dc:creator>adia109</dc:creator></item><item><title>RE: The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context</title><link>http://www.sqlservercentral.com/Forums/Topic550938-146-1.aspx</link><description>In my case the solution turned out to be permissions related.I needed to grant CONNECT and CONNECT REPLICATEDand that was sufficient. </description><pubDate>Tue, 13 Oct 2009 19:17:34 GMT</pubDate><dc:creator>billdunf</dc:creator></item><item><title>RE: The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context</title><link>http://www.sqlservercentral.com/Forums/Topic550938-146-1.aspx</link><description>Are the sql services running for that instance?Is the domain account locked or expired - or did the password change recently?</description><pubDate>Tue, 13 Oct 2009 17:22:27 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context</title><link>http://www.sqlservercentral.com/Forums/Topic550938-146-1.aspx</link><description>[quote][b]TryException (7/4/2009)[/b][hr]The solution is pretty simple:[url=http://www.kf7.co.uk/sql-server-principal-not-able-access-database.aspx]http://www.kf7.co.uk/sql-server-principal-not-able-access-database.aspx[/url]...[/quote]Isn't that solution only applicable to SQL Server 2008?I can't see how to fix it in SQL Server 20065 Express</description><pubDate>Tue, 13 Oct 2009 16:56:10 GMT</pubDate><dc:creator>billdunf</dc:creator></item><item><title>RE: The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context</title><link>http://www.sqlservercentral.com/Forums/Topic550938-146-1.aspx</link><description>The solution is pretty simple:[url=http://www.kf7.co.uk/sql-server-principal-not-able-access-database.aspx]http://www.kf7.co.uk/sql-server-principal-not-able-access-database.aspx[/url]SQL Server Management Studio uses sql script to get a list of databases and related information. If you do not have enough rights to retrieve the related pieces of information then you may get this error.</description><pubDate>Sat, 04 Jul 2009 16:06:50 GMT</pubDate><dc:creator>TryException</dc:creator></item><item><title>RE: The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context</title><link>http://www.sqlservercentral.com/Forums/Topic550938-146-1.aspx</link><description>[quote][b]Ken_R_Vickers (5/12/2009)[/b][hr]If you have SQL Server 2008 (100) Web Edition then in sp_add_jobstep do not supply @database_user_name or in the GUI supply a run as user as this will result in a spurious error indicating the user does not have permission!You just have to run with SQL Agents permission set.[/quote]A possible workaround if you don't want to have the owner be sa is to have the user be a member of msdb and grant the the SQLAgentOperatorRole in msdb.  See if that works.But to be honest, either use sa or a dedicated service account with enough permissions.  It's better if the job runs under that context.</description><pubDate>Wed, 13 May 2009 07:50:58 GMT</pubDate><dc:creator>GabyYYZ</dc:creator></item><item><title>RE: The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context</title><link>http://www.sqlservercentral.com/Forums/Topic550938-146-1.aspx</link><description>If you have SQL Server 2008 (100) Web Edition then in sp_add_jobstep do not supply @database_user_name or in the GUI supply a run as user as this will result in a spurious error indicating the user does not have permission!You just have to run with SQL Agents permission set.</description><pubDate>Tue, 12 May 2009 10:10:54 GMT</pubDate><dc:creator>Ken_R_Vickers</dc:creator></item><item><title>RE: The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context</title><link>http://www.sqlservercentral.com/Forums/Topic550938-146-1.aspx</link><description>lazy solution: change job owner to SA</description><pubDate>Tue, 12 Aug 2008 07:23:31 GMT</pubDate><dc:creator>Wilfred van Dijk</dc:creator></item><item><title>RE: The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context</title><link>http://www.sqlservercentral.com/Forums/Topic550938-146-1.aspx</link><description>is domain\sqlman a user of that database? does it have a user account under the security tab in that database?</description><pubDate>Tue, 12 Aug 2008 07:03:20 GMT</pubDate><dc:creator>Lenny-319914</dc:creator></item><item><title>The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context</title><link>http://www.sqlservercentral.com/Forums/Topic550938-146-1.aspx</link><description>while executing a job it gives error Executed as user: domain\SQLMan. The server principal "domain\sqlman" is not able to access the database "test_DBA" under the current security context. [SQLSTATE 08004] (Error 916).  The step failed.Please suggest</description><pubDate>Tue, 12 Aug 2008 07:00:03 GMT</pubDate><dc:creator>Bhuvnesh</dc:creator></item></channel></rss>