This file contains 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
[CmdletBinding()] | |
Param( | |
# OAuth parameters | |
[Parameter(Mandatory = $false)] [string] $TenantID = 'a guid', | |
[Parameter(Mandatory = $false)] [string] $ClientID = 'a client id', | |
[Parameter(Mandatory = $false)] [string] $Scope = 'https://storage.azure.com/.default', | |
[Parameter(Mandatory = $false)] [string] $GrantType = 'client_credentials', | |
[Parameter(Mandatory = $false)] [string] $ClientSecret = '', | |
[Parameter(Mandatory = $false)] [string] $ClientSecretKeyVaultSecret = 'the secret name', | |
[Parameter(Mandatory = $false)] [string] $KeyVaultName = 'the key vault name', |
This file contains 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
# Sample Usage: .\SqlExecTime.ps1 -Server "LOCALHOST" -Database "WideWorldImportersDW" -Integrated | |
# Prerequisites: Install-Module -Name SqlServer -AllowClobber | |
# To do: add support for Access Token authentication | |
param ( | |
[Parameter(Mandatory=$false)]$Server, | |
[Parameter(Mandatory=$false)]$Database, | |
[Parameter(Mandatory=$false)]$Username, | |
[Parameter(Mandatory=$false)]$Password, | |
[Parameter(Mandatory=$false)]$Path, |
This file contains 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
# prerequisites: | |
# 1. Create an Azure Database from AdventureWorksLT sample database as hub database | |
# 2. Create an Azure Database in the same region as sync database | |
# 3. Create an on premises SQL Server Database as member database | |
# 4. Update the parameters below before running the sample | |
# | |
using namespace Microsoft.Azure.Commands.Sql.DataSync.Model | |
using namespace System.Collections.Generic | |
# Hub database info |
This file contains 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
/* | |
=========================================================================== | |
Service Broker Sample 2: Asynchronous Triggers | |
=========================================================================== | |
Source code: https://gist.github.com/JCallico/8182ab062d8dd7fd7c06bd023faf08ec | |
Based on: http://www.madeiradata.com/service-broker-asynchronous-triggers | |
*/ | |
-- Creation of the table for global settings |