ssh-keygen -t ed25519 -b 4096
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Elastic Agent Jobs | |
| -- Official doc: https://learn.microsoft.com/en-us/azure/azure-sql/database/elastic-jobs-tsql-create-manage?view=azuresql | |
| -- Unofficial doc: https://sqlkitty.com/elastic-jobs-azure-sql-db/ | |
| -- Add target group | |
| EXEC jobs.sp_add_target_group 'AzureSQLDBs'; | |
| -- Add single database (or server/elastic pool) to target group | |
| EXEC jobs.sp_add_target_group_member | |
| @target_group_name = 'AzureSQLDBs', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DECLARE @object_id INT = OBJECT_ID('dbo.YourTable'); | |
| DECLARE @db_id INT = DB_ID(); | |
| DECLARE @index_id INT; | |
| DECLARE @index_name NVARCHAR(128); | |
| DROP TABLE IF EXISTS #IndexStats | |
| SELECT TOP 0 * | |
| INTO #IndexStats | |
| FROM sys.dm_db_index_physical_stats(@db_id, NULL, NULL, NULL, 'LIMITED'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| [System.State], | |
| [System.Id], | |
| [System.Title], | |
| [System.IterationLevel2], | |
| [Microsoft.VSTS.Common.ClosedDate] | |
| FROM workitemLinks | |
| WHERE | |
| ( | |
| [Source].[System.TeamProject] = @project |
⚠️ Recommends support request⚠️
No support request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <packages> | |
| <package id="7zip.install" /> | |
| <package id="adobereader" /> | |
| <package id="azure-data-studio" /> | |
| <package id="chocolatey" /> | |
| <package id="chocolatey-compatibility.extension" /> | |
| <package id="chocolatey-core.extension" /> | |
| <package id="chocolatey-dotnetfx.extension" /> | |
| <package id="chocolateygui" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| CREATE TABLE [dbo].[test_jsonmerge]( | |
| [id] [int] NOT NULL, | |
| [people_id] [varchar](50) NOT NULL, | |
| [last_name] [varchar](50) NULL, | |
| [sms_status] [varchar](50) NULL, | |
| CONSTRAINT [PK_test_jsonmerge] PRIMARY KEY CLUSTERED | |
| ( | |
| [id] ASC, | |
| [people_id] ASC |
- Uncheck table from sync source.
- Confirm that all resources are automatically removed via above step:
-- github.com/microsoft/sql-server-samples/blob/master/samples/features/sql-data-sync/clean_up_data_sync_objects.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DECLARE | |
| @schema SYSNAME = '', | |
| @table SYSNAME = '' | |
| -- Declare variables to store column name and data type | |
| DECLARE @column_name varchar(50) | |
| DECLARE @data_type varchar(50) | |
| -- Declare a cursor to loop through the columns of the table | |
| DECLARE column_cursor CURSOR FOR |