Skip to content

Commit 5ec91e0

Browse files
authored
Merge pull request #110706 from julieMSFT/20200408_ria_updatesFilip
20200408 ria updates from Filip
2 parents f80a419 + 3d1b638 commit 5ec91e0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

articles/synapse-analytics/sql/resources-self-help-sql-on-demand.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,17 @@ If Synapse Studio can't establish connection to SQL on-demand, you'll notice tha
2424

2525
## Query fails because file cannot be opened
2626

27-
If your query fails when with the error saying 'File cannot be opened because it does not exist or it is used by another process' and you're sure both file exist and it's not used by another process it means SQL on-demand can't access the file. This problem usually happens because your Azure Active Directory identity doesn't have rights to access the file. By default, SQL on-demand is trying to access the file using your Azure Active Directory identity. To resolve this issue, you need to have proper rights to access the file. Easiest way is to grant yourself 'Storage Blob Data Contributor' role on the storage account you're trying to query. [Visit full guide on Azure Active Directory access control for storage for more information](../../storage/common/storage-auth-aad-rbac-portal.md?toc=/azure/synapse-analytics/toc.json&bc=/azure/synapse-analytics/breadcrumb/toc.json).
27+
If your query fails with the error saying 'File cannot be opened because it does not exist or it is used by another process' and you're sure both file exist and it's not used by another process it means SQL on-demand can't access the file. This problem usually happens because your Azure Active Directory identity doesn't have rights to access the file. By default, SQL on-demand is trying to access the file using your Azure Active Directory identity. To resolve this issue, you need to have proper rights to access the file. Easiest way is to grant yourself 'Storage Blob Data Contributor' role on the storage account you're trying to query. [Visit full guide on Azure Active Directory access control for storage for more information](../../storage/common/storage-auth-aad-rbac-portal.md?toc=/azure/synapse-analytics/toc.json&bc=/azure/synapse-analytics/breadcrumb/toc.json).
28+
29+
## Query fails because it cannot be executed due to current resource constraints
30+
31+
If your query fails with the error message 'This query cannot be executed due to current resource constraints', it means that SQL OD is not able to execute it at this moment due to resource constraints:
32+
33+
- Please make sure data types of reasonable sizes are used. Also, specify schema for Parquet files for string columns as they will be VARCHAR(8000) by default.
34+
35+
- If your query targets CSV files, consider [creating statistics](develop-tables-statistics.md#statistics-in-sql-on-demand-preview).
36+
37+
- Visit [performance best practices for SQL on-demand](best-practices-sql-on-demand.md) to optimize query.
2838

2939
## Next steps
3040

0 commit comments

Comments
 (0)