Skip to content

Commit 44b59d2

Browse files
authored
Merge pull request #95098 from arunguru-msft/patch-10
Update dacpac deployment instructions to handle automatic starting streaming jobs
2 parents df99284 + d1b5eed commit 44b59d2

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

articles/azure-sql-edge/deploy-dacpac.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,27 @@ SQL Database dacpac and bacpac packages can be deployed to SQL Edge using the `M
2828

2929
To deploy (or import) a SQL Database DAC package `(*.dacpac)` or a BACPAC file `(*.bacpac)` using Azure Blob storage and a zip file, follow the steps below.
3030

31-
1. Create/Extract a DAC package or Export a Bacpac File using the mechanism mentioned below.
31+
1. Create/Extract a DAC package or Export a Bacpac File using one of the mechanism mentioned below.
32+
- Use [SQL Database Project Extension - Azure Data Studio](/sql/azure-data-studio/extensions/sql-database-project-extension-getting-started) to [create a new database project or export an existing database](/sql/azure-data-studio/extensions/sql-database-project-extension-getting-started)
3233
- Create or extract a SQL Database DAC package. See [Extracting a DAC from a database](/sql/relational-databases/data-tier-applications/extract-a-dac-from-a-database/) for information on how to generate a DAC package for an existing SQL Server database.
3334
- Exporting a deployed DAC package or a database. See [Export a Data-tier Application](/sql/relational-databases/data-tier-applications/export-a-data-tier-application/) for information on how to generate a bacpac file for an existing SQL Server database.
3435

36+
> [!NOTE]
37+
> If you are using external streaming jobs as part of the database, please ensure the following:
38+
>
39+
> - The generated dacpac will capture all the SQL Server Objects corresponding to the inputs/output streams and the streaming jobs. But the jobs will not be automatically started. In order to have the external streaming job automatically started after deployment, add a post-deployment script that restarts the jobs as follows:
40+
>
41+
> ```
42+
> exec sys.sp_stop_streaming_job @name=N'<JOB NAME>';
43+
> GO
44+
> exec sys.sp_start_streaming_job @name=N'<JOB NAME>';
45+
> GO
46+
> ```
47+
>
48+
> - Ensure any credentials required by the external streaming jobs to access input or output streams are provided as part of the dacpac.
49+
50+
51+
3552
2. Zip the `*.dacpac` or the `*.bacpac` file and upload it to an Azure Blob storage account. For more information on uploading files to Azure Blob storage, see [Upload, download, and list blobs with the Azure portal](../storage/blobs/storage-quickstart-blobs-portal.md).
3653
3754
3. Generate a shared access signature for the zip file by using the Azure portal. For more information, see [Delegate access with shared access signatures (SAS)](../storage/common/storage-sas-overview.md).
@@ -68,4 +85,4 @@ During some DACPAC or BACPAC deployments users may encounter a command timeouts,
6885
6986
- [Deploy SQL Edge through Azure portal](deploy-portal.md).
7087
- [Stream Data](stream-data.md)
71-
- [Machine learning and AI with ONNX in SQL Edge](onnx-overview.md)
88+
- [Machine learning and AI with ONNX in SQL Edge](onnx-overview.md)

0 commit comments

Comments
 (0)