Skip to content

Commit a2323ec

Browse files
Merge pull request #849 from Matteo-T/master
Reconciling SQL Templatates that ship with SSMS with the ones on GitHub.
2 parents 1fa78c3 + 0f88549 commit a2323ec

39 files changed

+142
-120
lines changed

samples/features/ssms-templates/Sql/External Data Source/Create External Data Source.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GO
77
IF EXISTS (
88
SELECT *
99
FROM sys.external_data_sources
10-
WHERE name = N'<data_source_name, sysname, your_data_source_name>'
10+
WHERE name = N'<data_source_name, sysname, sample_data_source>'
1111
)
1212
DROP EXTERNAL DATA SOURCE <data_source_name, sysname, sample_data_source>
1313
GO

samples/features/ssms-templates/Sql/External Data Source/Drop External Data Source.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ GO
66

77
IF EXISTS (
88
SELECT *
9-
FROM sys.external_data_sources
10-
WHERE name = N'<data_source_name, sysname, your_data_source_name>'
9+
FROM sys.external_data_sources
10+
WHERE name = N'<data_source_name, sysname, sample_data_source>'
1111
)
1212
DROP EXTERNAL DATA SOURCE <data_source_name, sysname, sample_data_source>
1313
GO
Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- ===================================================================================================================================
2-
-- Create database template for Azure SQL Database and Azure SQL Data Warehouse Database
2+
-- Create database template for Azure SQL Database and Azure Synapse Analytics Database
33
--
44
-- This script will only run in the context of the master database. To manage this database in
55
-- SQL Server Management Studio, either connect to the created database, or connect to master.
@@ -9,27 +9,30 @@
99
-- continuity, data protection and security, and near-zero administration — all backed by the power
1010
-- and reach of Microsoft Azure.
1111
--
12-
-- SQL Database is available in the following service tiers: Basic, Standard, Premium , DataWarehouse, Web (Retired)
12+
-- SQL Database is available in the following service tiers: GeneralPurpose, Basic, Standard, Premium , DataWarehouse, Web (Retired)
1313
-- and Business (Retired).
14+
-- General Purpose service tier is a default service tier in Azure SQL Database that is designed for most of the generic workloads.
15+
-- If you need a fully managed database engine with 99.99% SLA with storage latency between 5 and 10 ms that match Azure SQL
16+
-- IaaS in most of the cases, General Purpose tier is the option for you.
1417
-- Standard is the go-to option for getting started with cloud-designed business applications and
1518
-- offers mid-level performance and business continuity features. Performance objectives for Standard
1619
-- deliver predictable per minute transaction rates.
1720
--
18-
-- See http://go.microsoft.com/fwlink/p/?LinkId=306622 for more information about Azure SQL Database.
21+
-- See https://go.microsoft.com/fwlink/p/?LinkId=306622 for more information about Azure SQL Database.
1922
--
20-
-- See http://go.microsoft.com/fwlink/?LinkId=787140 for more information about Azure SQL Data Warehouse.
23+
-- See https://go.microsoft.com/fwlink/?LinkId=787140 for more information about Azure Synapse Analytics.
2124
--
22-
-- See http://go.microsoft.com/fwlink/p/?LinkId=402063 for more information about CREATE DATABASE for Azure SQL Database.
25+
-- See https://go.microsoft.com/fwlink/p/?LinkId=402063 for more information about CREATE DATABASE for Azure SQL Database.
2326
--
24-
-- See http://go.microsoft.com/fwlink/?LinkId=787139 for more information about CREATE DATABASE for Azure SQL Data Warehouse Database.
27+
-- See https://go.microsoft.com/fwlink/?LinkId=787139 for more information about CREATE DATABASE for Azure Synapse Analytics Database.
2528
-- ===================================================================================================================================
2629

2730

2831
CREATE DATABASE <Database_Name, sysname, Database_Name> COLLATE <collation_Name, sysname, SQL_Latin1_General_CP1_CI_AS>
2932
(
30-
EDITION = '<EDITION, , Standard>',
31-
SERVICE_OBJECTIVE='<SERVICE_OBJECTIVE,,S0>',
32-
MAXSIZE = <MAX_SIZE,,250 GB>
33+
EDITION = '<EDITION, , GeneralPurpose>',
34+
SERVICE_OBJECTIVE='<SERVICE_OBJECTIVE,,GP_Gen5_2>',
35+
MAXSIZE = <MAX_SIZE,,32 GB>
3336
)
3437

3538
GO
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
-- ===================================================================================
2-
-- Drop database template for Azure SQL Database and Azure SQL Data Warehouse Database
3-
-- ===================================================================================
1+
-- ===================================================================================================================================
2+
-- Drop database template for Azure SQL Database, Azure Synapse Analytics Database, and Azure Synapse SQL Analytics on-demand Database
3+
-- ===================================================================================================================================
44
DROP DATABASE <Database_Name, sysname, Database_Name>
55
GO

samples/features/ssms-templates/Sql/SQL Azure Database/External Data Source/Alter External Data Source DW.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
-- =========================================================================
2-
-- Alter external data source template for Azure SQL Data Warehouse Database
3-
-- =========================================================================
1+
-- ========================================================================
2+
-- Alter external data source template for Azure Synapse Analytics Database
3+
-- ========================================================================
44

55
ALTER EXTERNAL DATA SOURCE <data_source_name, sysname, sample_data_source> SET
66
LOCATION = N'<location, sysname, sample_location>',
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
-- ==========================================================================
2-
-- Create external data source template for Azure SQL Data Warehouse Database
3-
-- ==========================================================================
1+
-- =========================================================================
2+
-- Create external data source template for Azure Synapse Analytics Database
3+
-- =========================================================================
44

55
IF EXISTS (
66
SELECT *
7-
FROM sys.external_data_sources
8-
WHERE name = N'<data_source_name, sysname, your_data_source_name>'
7+
FROM sys.external_data_sources
8+
WHERE name = N'<data_source_name, sysname, sample_data_source>'
99
)
1010
DROP EXTERNAL DATA SOURCE <data_source_name, sysname, sample_data_source>
1111
GO
1212

1313
CREATE EXTERNAL DATA SOURCE <data_source_name, sysname, sample_data_source> WITH
1414
(
15-
TYPE = <data_source_type, sysname, sample_type>,
16-
LOCATION = N'<location, sysname, sample_location>',
17-
RESOURCE_MANAGER_LOCATION = N'<resource_manager_location, sysname, sample_resource_manager_location>',
18-
CREDENTIAL = <credential_name, sysname, sample_credential>
15+
TYPE = <data_source_type, sysname, sample_type>,
16+
LOCATION = N'<location, sysname, sample_location>',
17+
RESOURCE_MANAGER_LOCATION = N'<resource_manager_location, sysname, sample_resource_manager_location>',
18+
CREDENTIAL = <credential_name, sysname, sample_credential>
1919
)
2020
GO

samples/features/ssms-templates/Sql/SQL Azure Database/External Data Source/Create External Data Source.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
IF EXISTS (
55
SELECT *
66
FROM sys.external_data_sources
7-
WHERE name = N'<data_source_name, sysname, your_data_source_name>'
7+
WHERE name = N'<data_source_name, sysname, sample_data_source>'
88
)
99
DROP EXTERNAL DATA SOURCE <data_source_name, sysname, sample_data_source>
1010
GO
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
-- ===============================================================================================
2-
-- Drop external data source template for Azure SQL Database and Azure SQL Data Warehouse Database
3-
-- ===============================================================================================
1+
-- ======================================================================================================================================
2+
-- Drop external data source template for Azure SQL Database, Azure Synapse Analytics Database, and Azure Synapse SQL Analytics on-demand
3+
-- ======================================================================================================================================
44

55
IF EXISTS (
66
SELECT *
7-
FROM sys.external_data_sources
8-
WHERE name = N'<data_source_name, sysname, your_data_source_name>'
7+
FROM sys.external_data_sources
8+
WHERE name = N'<data_source_name, sysname, sample_data_source>'
99
)
1010
DROP EXTERNAL DATA SOURCE <data_source_name, sysname, sample_data_source>
1111
GO

samples/features/ssms-templates/Sql/SQL Azure Database/External File Format/Create External File Format.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
-- ==========================================================================
2-
-- Create external file format template for Azure SQL Data Warehouse Database
3-
-- ==========================================================================
1+
-- =========================================================================
2+
-- Create external file format template for Azure Synapse Analytics Database
3+
-- =========================================================================
44

55
IF EXISTS (
66
SELECT *

samples/features/ssms-templates/Sql/SQL Azure Database/External File Format/Drop External File Format.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
-- ========================================================================
2-
-- Drop external file format template for Azure SQL Data Warehouse Database
3-
-- ========================================================================
1+
-- ==================================================================================================================
2+
-- Drop external file format template for Azure Synapse Analytics Database, and Azure Synapse SQL Analytics on-demand
3+
-- ==================================================================================================================
44

55
IF EXISTS (
66
SELECT *

0 commit comments

Comments
 (0)