Microsoft Sql Server Error 916

  1. Sql Server Error 300
  2. Microsoft Sql Server 2005 Express Error 916
  3. Ms Sql Server Error 916
-->

This article lists common troubleshooting question.

You receive SQL Server error 916 when you try to delete a document in Edit/Select Documents for Payment Content provided by Microsoft Applies to: Microsoft Dynamics SL 2011 Service Pack 3 Accounts Payable.

Connecting

IssueResolution
Login failed for user 'NT AUTHORITYANONYMOUS LOGON'. (Microsoft SQL Server, Error: 18456)This error occurs when an AAD user tries to connect to the master database, but does not have a user in master. To correct this issue, either specify the SQL Data Warehouse you wish to connect to at connection time or add the user to the master database. See Security overview article for more details.
The server principal 'MyUserName' is not able to access the database 'master' under the current security context. Cannot open user default database. Login failed. Login failed for user 'MyUserName'. (Microsoft SQL Server, Error: 916)This error occurs when an AAD user tries to connect to the master database, but does not have a user in master. To correct this issue, either specify the SQL Data Warehouse you wish to connect to at connection time or add the user to the master database. See Security overview article for more details.
CTAIP errorThis error can occur when a login has been created on the SQL server master database, but not in the SQL Data Warehouse database. If you encounter this error, take a look at the Security overview article. This article explains how to create a login and user on master, and then how to create a user in the SQL Data Warehouse database.
Blocked by FirewallAzure SQL databases are protected by server and database level firewalls to ensure only known IP addresses have access to a database. The firewalls are secure by default, which means that you must explicitly enable and IP address or range of addresses before you can connect. To configure your firewall for access, follow the steps in Configure server firewall access for your client IP in the Provisioning instructions.
Cannot connect with tool or driverSQL Data Warehouse recommends using SSMS, SSDT for Visual Studio, or sqlcmd to query your data. For more information on drivers and connecting to SQL Data Warehouse, see Drivers for Azure SQL Data Warehouse and Connect to Azure SQL Data Warehouse articles.

Issue Resolution; Visual Studio object explorer is missing AAD users: This is a known issue. As a workaround, view the users in sys.databaseprincipals.See Authentication to Azure SQL Data Warehouse to learn more about using Azure Active Directory with SQL Data Warehouse. Msg 916, Level 14, State 1, Line 1 The server principal '. fission' is not able to access the database '.' under the current security context. Microsoft SQL Server Management Studio 12.0.4100.1. Getting CU1 sent to me now. (Microsoft SQL Server, Error: 916) I know, this is a very rare thing, and if you change something and then things quit working, you’ll probably put 2 + 2 together to know what happened. But just in case an admin removes it and you can’t access your databases through SSMS any more, well, there you go. Here are some possible reasons for SQL Server Error 916: A login does not have permission to view data of a column selected in the header A database is offline and/or its collation is NULL.

Tools

IssueResolution
Visual Studio object explorer is missing AAD usersThis is a known issue. As a workaround, view the users in sys.database_principals. See Authentication to Azure SQL Data Warehouse to learn more about using Azure Active Directory with SQL Data Warehouse.
Manual scripting, using the scripting wizard, or connecting via SSMS is slow, not responding, or producing errorsEnsure that users have been created in the master database. In scripting options, also make sure that the engine edition is set as “Microsoft Azure SQL Data Warehouse Edition” and engine type is “Microsoft Azure SQL Database”.
Generate scripts fails in SSMSGenerating a script for SQL Data Warehouse fails if the option 'Generate script for dependent objects' option is set to 'True.' As a workaround, users must manually go to Tools -> Options ->SQL Server Object Explorer -> Generate script for dependent options and set to false

Performance

IssueResolution
Query performance troubleshootingIf you are trying to troubleshoot a particular query, start with Learning how to monitor your queries.
Poor query performance and plans often is a result of missing statisticsThe most common cause of poor performance is lack of statistics on your tables. See Maintaining table statistics for details on how to create statistics and why they are critical to your performance.
Low concurrency / queries queuedUnderstanding Workload management is important in order to understand how to balance memory allocation with concurrency.
How to implement best practicesThe best place to start to learn ways to improve query performance is SQL Data Warehouse best practices article.
How to improve performance with scalingSometimes the solution to improving performance is to simply add more compute power to your queries by Scaling your SQL Data Warehouse.
Poor query performance as a result of poor index qualitySome times queries can slow down because of Poor columnstore index quality. See this article for more information and how to Rebuild indexes to improve segment quality.
Error

System management

Sql Server Error 300

IssueResolution
Msg 40847: Could not perform the operation because server would exceed the allowed Database Transaction Unit quota of 45000.Either reduce the DWU of the database you are trying to create or request a quota increase.
Investigating space utilizationSee Table sizes to understand the space utilization of your system.
Help with managing tablesSee the Table overview article for help with managing your tables. This article also includes links into more detailed topics like Table data types, Distributing a table, Indexing a table, Partitioning a table, Maintaining table statistics and Temporary tables.
Transparent data encryption (TDE) progress bar is not updating in the Azure portalYou can view the state of TDE via powershell.

Differences from SQL Database

IssueResolution
Unsupported SQL Database featuresSee Unsupported table features.
Unsupported SQL Database data typesSee Unsupported data types.
DELETE and UPDATE limitationsSee UPDATE workarounds, DELETE workarounds and Using CTAS to work around unsupported UPDATE and DELETE syntax.
MERGE statement is not supportedSee MERGE workarounds.
Stored procedure limitationsSee Stored procedure limitations to understand some of the limitations of stored procedures.
UDFs do not support SELECT statementsThis is a current limitation of our UDFs. See CREATE FUNCTION for the syntax we support.

Microsoft Sql Server 2005 Express Error 916

Next steps

Ms Sql Server Error 916

For more help in finding solution to your issue, here are some other resources you can try.