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

Commit b8b015d

Browse files
committed
suggested fixes and example commands
1 parent f7c4e20 commit b8b015d

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

docs/tools/sqlpackage/sqlpackage-import.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ SqlPackage {parameters}{properties}{SQLCMD Variables}
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)|When True, rebuilds 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

6666
## Next Steps

docs/tools/sqlpackage/troubleshooting-import-export-sqlpackage.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,24 @@ ms.date: 5/5/2021
1616

1717
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.
1818

19-
## Overall strategies
20-
As general guideline, better performance can be obtained via the .NET Core version of SqlPackage.exe.
19+
## Overall strategy
20+
As general guideline, better performance can be obtained via the [.NET Core version](sqlpackage-download.md#get-sqlpackage-net-core-for-windows) of SqlPackage.exe.
21+
22+
1. [Download](sqlpackage-download.md#get-sqlpackage-net-core-for-windows) the zip for SqlPackage on .NET Core for your operating system (Windows, macOS, or Linux).
23+
2. Unzip archive as directed on the download page.
24+
3. Open a command prompt and change directory (`cd`) to the SqlPackage folder.
25+
26+
For Import, an example command is:
27+
```bash
28+
./SqlPackage /Action:Import /sf:<source-bacpac-file-path> /tsn:<full-target-server-name> /tdn:<a new or empty database> /tu:<target-server-username> /tp:<target-server-password> /df:<log-file>
29+
```
30+
31+
For Export, an example command is:
32+
```bash
33+
./SqlPackage /Action:Export /tf:<target-bacpac-file-path> /ssn:<full-source-server-name> /sdn:<source-database-name> /su:<source-server-username> /sp:<source-server-password> /df:<log-file>
34+
```
35+
36+
Alternative to username and password, [Universal Authentication](/azure/azure-sql/database/authentication-mfa-ssms-overview) can be used to authenticate via Azure AD with MFA. Substitute the username and password parameters for `/ua:true` and `/tid:"yourdomain.onmicrosoft.com"`.
2137

2238
For issues related to timeouts, the properties `CommandTimeout` and `LongRunningCommandTimeout` can be used to tune the connection between SqlPackage.exe and the SQL instance.
2339

0 commit comments

Comments
 (0)