0

I am using sqlpackage.exe, available with the SQL Server Management Studio 2016 (preview) to publish a database to SQL Azure (from a bacpac file previously exported from a local database server).

The problem is that this database is created with the S0 service objective (which I suppose is the default).

I would like to be able to set the service objective of the target in the import command with sqlpackage.exe.

I have searched for an answer and I cannot find anything in the sqlpackage.exe documentation available here:

https://msdn.microsoft.com/en-us/library/hh550080(v=vs.103).aspx

I see the management studio UI allows to set the service objetive and I understand that it uses sqlpackage.exe underneath.

Anyone has an idea on how to get this done?

4

1 に答える 1

5

ドキュメントが古くなっているようです。内部チームに連絡して更新を依頼しました。ただし、インポートに関するヘルプを探すと、サービス レベル目標 (SLO) に指定されるパラメーターが表示されます。

SqlPackage.exe /a:インポート /?

/p:DatabaseEdition=({Web|Business|Basic|Standard|Premium|Default} 'Default') Microsoft Azure SQL データベースのエディションを定義します。

/p:DatabaseServiceObjective=(STRING) 「P0」や「S1」など、Microsoft Azure SQL データベースのパフォーマンス レベルを定義します。

ただし、データベースの作成後に SLO を変更する場合、sqlpackage.exe のサポートはありません。TSQL、Powershell、API、またはポータルを介して行う必要があります。

ベスト、
サローニ

于 2016-03-30T21:54:27.410 に答える