Title: Add support for new SQL Server 2022 snapshot backup / restore functionality · Issue #39 · microsoft/SqlScriptDOM · GitHub
Open Graph Title: Add support for new SQL Server 2022 snapshot backup / restore functionality · Issue #39 · microsoft/SqlScriptDOM
X Title: Add support for new SQL Server 2022 snapshot backup / restore functionality · Issue #39 · microsoft/SqlScriptDOM
Description: SQL Server 2022 introduced a new type of backup - snapshot. ScriptDom currently does not support this type of backup. Note that this is different from the database snapshot functionality, which has been around since SQL Server 2005. In a...
Open Graph Description: SQL Server 2022 introduced a new type of backup - snapshot. ScriptDom currently does not support this type of backup. Note that this is different from the database snapshot functionality, which has...
X Description: SQL Server 2022 introduced a new type of backup - snapshot. ScriptDom currently does not support this type of backup. Note that this is different from the database snapshot functionality, which has...
Opengraph URL: https://github.com/microsoft/SqlScriptDOM/issues/39
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for new SQL Server 2022 snapshot backup / restore functionality","articleBody":"SQL Server 2022 introduced a new type of backup - [snapshot](https://learn.microsoft.com/en-us/sql/relational-databases/backup-restore/create-a-transact-sql-snapshot-backup?view=sql-server-ver16). ScriptDom currently does not support this type of backup. Note that this is different from the database snapshot functionality, which has been around since SQL Server 2005. In addition, there are new statements (`BACKUP GROUP` and `BACKUP SERVER`) in SQL Server 2022 which work in conjunction with these snapshot backups. There are also new options like `SUSPEND_FOR_SNAPSHOT_BACKUP` for `ALTER DATABASE` and `ALTER SERVER CONFIGURATION`, which are not recognized by ScriptDom. Example of statements which should be handled by ScriptDom are below. There are more examples in the docs linked to earlier.\r\n\r\n```sql\r\nALTER DATABASE testdb1\r\nSET SUSPEND_FOR_SNAPSHOT_BACKUP = ON\r\n(MODE = COPY_ONLY);\r\n\r\nALTER SERVER CONFIGURATION\r\nSET SUSPEND_FOR_SNAPSHOT_BACKUP = ON\r\n(GROUP = (testdb1, testdb2), MODE = COPY_ONLY);\r\n\r\nBACKUP DATABASE testdb1\r\nTO DISK = 'd:\\temp\\db.bkm'\r\nWITH METADATA_ONLY, FORMAT;\r\n\r\nRESTORE DATABASE testdb1\r\nFROM DISK = 'd:\\temp\\db.bkm'\r\nWITH METADATA_ONLY, FILE = 3, REPLACE, --\u003e no DBNAME clause - restore first database in backup set\r\nMOVE 'testdb1' TO 'd:\\temp\\snap\\testdb1.mdf',\r\nMOVE 'testdb1_log' TO 'd:\\temp\\snap\\testdb1_log.ldf';\r\n```","author":{"url":"https://github.com/arvindshmicrosoft","@type":"Person","name":"arvindshmicrosoft"},"datePublished":"2023-05-31T19:43:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/39/SqlScriptDOM/issues/39"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:729283db-ad2b-e877-46fe-5d79981f590c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 87DC:13D878:FA7E8B:13DAA2D:69916860 |
| html-safe-nonce | 871b3f0bbc2137cb68fdc84aa185a0d0aff3e41087551deea2687fe5768461a2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0RDOjEzRDg3ODpGQTdFOEI6MTNEQUEyRDo2OTkxNjg2MCIsInZpc2l0b3JfaWQiOiI4NTA4NTYxNzgyNjAzODY4MjU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a8eb474b425f18de460000ee00868650dd9cb7bff9b2f2b092847ac2b4ce9e0b |
| hovercard-subject-tag | issue:1734892291 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/SqlScriptDOM/39/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e7de33d085c6fdad3087c0fff37e2866d24b7e62ecae1739ac1c1c8330ffd441/microsoft/SqlScriptDOM/issues/39 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e7de33d085c6fdad3087c0fff37e2866d24b7e62ecae1739ac1c1c8330ffd441/microsoft/SqlScriptDOM/issues/39 |
| og:image:alt | SQL Server 2022 introduced a new type of backup - snapshot. ScriptDom currently does not support this type of backup. Note that this is different from the database snapshot functionality, which has... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arvindshmicrosoft |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/SqlScriptDOM git https://github.com/microsoft/SqlScriptDOM.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 543316377 |
| octolytics-dimension-repository_nwo | microsoft/SqlScriptDOM |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 543316377 |
| octolytics-dimension-repository_network_root_nwo | microsoft/SqlScriptDOM |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width