Muokkaa

Jaa


Troubleshoot dedicated SQL pool (formerly SQL DW) in Azure Synapse Analytics

This article lists common troubleshooting issues in dedicated SQL pool (formerly SQL DW) in Azure Synapse Analytics.

Connect

Issue Resolution
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. (Microsoft SQL Server, Error: 18456) This error occurs when a Microsoft Entra user tries to connect to the master database, but does not have a user in master. To correct this issue, either specify the dedicated SQL pool (formerly SQL DW) you wish to connect to at connection time or add the user to the master database. For more information, see Security overview.
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 a Microsoft Entra user tries to connect to the master database, but does not have a user in master. To correct this issue, either specify the dedicated SQL pool (formerly SQL DW) you wish to connect to at connection time or add the user to the master database. For more information, see Security overview.
CTAIP error This error can occur when a login has been created on the SQL Database master database, but not in the specific SQL database. If you encounter this error, take a look at the Security overview article. This article explains how to create a login and user in the master database, and then how to create a user in a SQL database.
Blocked by Firewall Dedicated SQL pools (formerly SQL DW) are protected by 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 driver Dedicated SQL pool (formerly SQL DW) recommends using SQL Server Management Studio (SSMS), SSDT for Visual Studio, or sqlcmd to query your data. For more information on drivers and connecting to Azure Synapse, see Drivers for Azure Synapse and Connect to Azure Synapse articles.

Tools

Issue Resolution
Visual Studio object explorer is missing Microsoft Entra users This is a known issue. As a workaround, view the users in sys.database_principals. See Authentication to Azure Synapse to learn more about using Microsoft Entra ID with dedicated SQL pool (formerly SQL DW).
Manual scripting, using the scripting wizard, or connecting via SSMS is slow, not responding, or producing errors Ensure that users have been created in the master database. In scripting options, also make sure that the engine edition is set as "Microsoft Azure Synapse Analytics Edition" and engine type is "Microsoft Azure SQL Database".
Generate scripts fails in SSMS Generating a script for dedicated SQL pool (formerly SQL DW) 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

Data ingestion and preparation

Issue Resolution
Exporting empty strings using CETAS will result in NULL values in Parquet and ORC files. Note if you are exporting empty strings from columns with NOT NULL constraints, CETAS will result in rejected records and the export can potentially fail. Remove empty strings or the offending column in the SELECT statement of your CETAS.
Loading a value outside the range of 0-127 into a tinyint column for Parquet and ORC file format is not supported. Specify a larger data type for the target column.
Msg 105208, Level 16, State 1, Line 1 COPY statement failed with the following error when validating value of option 'FROM': '105200;COPY statement failed because the value for option 'FROM' is invalid.' Currently, ingesting data using the COPY command into an Azure Storage account that is using the new DNS partitioning feature results in an error. DNS partition feature enables customers to create up to 5000 storage accounts per subscription. To resolve, provision a storage account in a subscription that does not use the new Azure Storage DNS partition feature (currently in Public Preview).

Performance

Issue Resolution
Query performance troubleshooting If you are trying to troubleshoot a particular query, start with Learning how to monitor your queries.
tempdb space issues Monitor TempDB space usage. Common causes for running out of tempdb space are:
- Not enough resources allocated to the query causing data to spill to tempdb. See Workload management
- Statistics are missing or out of date causing excessive data movement. See Maintaining table statistics for details on how to create statistics
- tempdb space is allocated per service level. Scaling your dedicated SQL pool (formerly SQL DW) to a higher DWU setting allocates more tempdb space.
Poor query performance and plans often is a result of missing statistics The 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 queued Understanding Workload management is important in order to understand how to balance memory allocation with concurrency.
How to implement best practices The best place to start to learn ways to improve query performance is dedicated SQL pool (formerly SQL DW) best practices article.
How to improve performance with scaling Sometimes the solution to improving performance is to simply add more compute power to your queries by Scaling your dedicated SQL pool (formerly SQL DW).
Poor query performance as a result of poor index quality Some times queries can slow down because of Poor columnstore index quality. For more information, see Rebuild indexes to improve segment quality.

System management

Issue Resolution
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 utilization See Table sizes to understand the space utilization of your system.
Help with managing tables See the Table overview article for help with managing your tables. For more information, see 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 portal You can view the state of TDE via PowerShell.

Differences from SQL Database

Issue Resolution
Unsupported SQL Database features See Unsupported table features.
Unsupported SQL Database data types See Unsupported data types.
Stored procedure limitations See Stored procedure limitations to understand some of the limitations of stored procedures.
UDFs do not support SELECT statements This is a current limitation of our UDFs. See CREATE FUNCTION for the syntax we support.

Next steps

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