Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 4d40e55

Browse files
committed
adding IE troubleshooting article
1 parent 5078031 commit 4d40e55

3 files changed

Lines changed: 46 additions & 3 deletions

File tree

docs/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9804,6 +9804,8 @@ items:
98049804
href: tools/sqlpackage/sqlpackage-pipelines.md
98059805
- name: SqlPackage for Azure Synapse Analytics
98069806
href: tools/sqlpackage/sqlpackage-for-azure-synapse-analytics.md
9807+
- name: Troubleshooting Import/Export
9808+
href: tools/sqlpackage/troubleshooting-import-export-sqlpackage.md
98079809
- name: SQL Server Profiler
98089810
href: tools/sql-server-profiler/sql-server-profiler.md
98099811
items:

docs/tools/sqlpackage/sqlpackage-import.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,14 @@ SqlPackage {parameters}{properties}{SQLCMD Variables}
5555
|**/p:**|DatabaseLockTimeout=(INT32 '60')| Specifies the database lock timeout in seconds when executing queries against SQLServer. Use -1 to wait indefinitely.|
5656
|**/p:**|DatabaseMaximumSize=(INT32)|Defines the maximum size in GB of an Azure SQL Database.|
5757
|**/p:**|DatabaseServiceObjective=(STRING)|Defines the performance level of an Azure SQL Database such as"P0" or "S1".|
58-
|**/p:**|DisableIndexesForDataPhase=(BOOLEAN TRUE)|Disable indexes before importing data into SQL Server.|
58+
|**/p:**|DisableIndexesForDataPhase=(BOOLEAN TRUE)|When true (default), disables indexes before importing data into SQL Server. When false, indexes are not rebuilt. |
5959
|**/p:**|ImportContributorArguments=(STRING)|Specifies deployment contributor arguments for the deployment contributors. This should be a semi-colon delimited list of values.|
6060
|**/p:**|ImportContributors=(STRING)|Specifies the deployment contributors, which should run when the bacpac is imported. This should be a semi-colon delimited list of fully qualified build contributor names or IDs.|
6161
|**/p:**|ImportContributorPaths=(STRING)|Specifies paths to load additional deployment contributors. This should be a semi-colon delimited list of values. |
6262
|**/p:**|LongRunningCommandTimeout=(INT32)| Specifies the long running command timeout in seconds when executing queries against SQL Server. Use 0 to wait indefinitely.|
63-
|**/p:**|RebuildIndexesOfflineForDataPhase=(BOOLEAN FALSE)|Rebuild indexes offline after importing data into SQL Server.|
63+
|**/p:**|RebuildIndexesOfflineForDataPhase=(BOOLEAN FALSE)|When True, rebuilds indexes offline after importing data into SQL Server.|
6464
|**/p:**|Storage=({File|Memory})|Specifies how elements are stored when building the database model. For performance reasons the default is InMemory. For large databases, File backed storage is required.|
6565

66-
6766
## Next Steps
6867

6968
- Learn more about [sqlpackage](sqlpackage.md)
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Troubleshooting Import/Export with SqlPackage
3+
description: Learn how to troubleshoot import and export with SqlPackage.exe.
4+
ms.prod: sql
5+
ms.prod_service: sql-tools
6+
ms.technology: tools-other
7+
ms.topic: conceptual
8+
ms.assetid: 198198e2-7cf4-4a21-bda4-51b36cb4284b
9+
author: "dzsquared"
10+
ms.author: "drskwier"
11+
ms.reviewer: "maghan; sstein"
12+
ms.date: 5/5/2021
13+
---
14+
15+
# Troubleshooting Import/Export with SqlPackage
16+
17+
In some scenarios, import or export operations take longer than expected or fail to complete. The following are some frequently suggested tactics to troubleshoot import and export operations. While reading the specific documentation page for each action to understand the available parameters and properties is recommended, this article serves as a starting point in investigating SqlPackage Import or Export operations.
18+
19+
## Overall Strategies
20+
As general guideline, better performance can be obtained via the .NET Core version of SqlPackage.exe.
21+
22+
For issues related to timeouts, the properties `CommandTimeout` and `LongRunningCommandTimeout` can be used to tune the connection between SqlPackage.exe and the SQL instance.
23+
24+
## Diagnostics
25+
Logs are essential to any troubleshooting. Capture the diagnostic logs from any SqlPackage operation to a file with the `/DiagnosticsFile:<filename>` parameter.
26+
Additional performance-related data can be logged by setting the environment variable `DACFX_PERF_TRACE=true`. To set this environment variable in PowerShell, use the following command:
27+
``` powershell
28+
Set-Item -Path Env:DACFX_PERF_TRACE -Value true
29+
```
30+
31+
## Import action Tips
32+
For imports that contain large tables or tables with many indexes, the use of `/p:RebuildIndexesOfflineForDataPhase=True` or `/p:DisableIndexesForDataPhase=False` may improve performance. Those and other properties are available to tune the [SqlPackage.exe Import](sqlpackage-import.md) operation.
33+
34+
## Export action Tips
35+
As an alternative operation to obtain the database schema and data while skipping the schema validation , perform an [Extract](sqlpackage-extract.md) with `/p:ExtractAllTableData=True` and `/p:VerifyExtraction=True`.
36+
37+
In scenarios where disk space is limited and running out during the export, the use of `/p:TempDirectoryForTableData` allows the data to be buffered from an alternative disk. That and other properties are available to tune the [SqlPackage.exe Export](sqlpackage-export.md) operation.
38+
39+
## Next Steps
40+
41+
- Learn more about [SqlPackage Import](sqlpackage-import.md)
42+
- Learn more about [SqlPackage Export](sqlpackage-export.md)

0 commit comments

Comments
 (0)