Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit cb9d4b0

Browse files
Merge pull request #26935 from rwestMSFT/rw-0501-t-sql-code-fence
[SCOPED] Correct code fence tag
2 parents da9765e + 4d3e264 commit cb9d4b0

34 files changed

Lines changed: 119 additions & 119 deletions

File tree

azure-sql/database/elastic-query-getting-started-vertical.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To start with, create two databases, **Customers** and **Orders**, either in the
2929

3030
Execute the following queries on the **Orders** database to create the **OrderInformation** table and input the sample data.
3131

32-
```tsql
32+
```sql
3333
CREATE TABLE [dbo].[OrderInformation](
3434
[OrderID] [int] NOT NULL,
3535
[CustomerID] [int] NOT NULL
@@ -43,7 +43,7 @@ INSERT INTO [dbo].[OrderInformation] ([OrderID], [CustomerID]) VALUES (564, 8)
4343

4444
Now, execute following query on the **Customers** database to create the **CustomerInformation** table and input the sample data.
4545

46-
```tsql
46+
```sql
4747
CREATE TABLE [dbo].[CustomerInformation](
4848
[CustomerID] [int] NOT NULL,
4949
[CustomerName] [varchar](50) NULL,
@@ -62,7 +62,7 @@ INSERT INTO [dbo].[CustomerInformation] ([CustomerID], [CustomerName], [Company]
6262
1. Open SQL Server Management Studio or SQL Server Data Tools in Visual Studio.
6363
2. Connect to the Orders database and execute the following T-SQL commands:
6464

65-
```tsql
65+
```sql
6666
CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<master_key_password>';
6767
CREATE DATABASE SCOPED CREDENTIAL ElasticDBQueryCred
6868
WITH IDENTITY = '<username>',
@@ -77,7 +77,7 @@ INSERT INTO [dbo].[CustomerInformation] ([CustomerID], [CustomerName], [Company]
7777

7878
To create an external data source, execute the following command on the Orders database:
7979

80-
```tsql
80+
```sql
8181
CREATE EXTERNAL DATA SOURCE MyElasticDBQueryDataSrc WITH
8282
(TYPE = RDBMS,
8383
LOCATION = '<server_name>.database.windows.net',
@@ -90,7 +90,7 @@ CREATE EXTERNAL DATA SOURCE MyElasticDBQueryDataSrc WITH
9090

9191
Create an external table on the Orders database, which matches the definition of the CustomerInformation table:
9292

93-
```tsql
93+
```sql
9494
CREATE EXTERNAL TABLE [dbo].[CustomerInformation]
9595
( [CustomerID] [int] NOT NULL,
9696
[CustomerName] [varchar](50) NOT NULL,
@@ -103,7 +103,7 @@ WITH
103103

104104
Once you have defined your external data source and your external tables, you can now use T-SQL to query your external tables. Execute this query on the Orders database:
105105

106-
```tsql
106+
```sql
107107
SELECT OrderInformation.CustomerID, OrderInformation.OrderId, CustomerInformation.CustomerName, CustomerInformation.Company
108108
FROM OrderInformation
109109
INNER JOIN CustomerInformation

azure-sql/database/elastic-query-getting-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ These are used to connect to the shard map manager and the shards:
5656
1. Open SQL Server Management Studio or SQL Server Data Tools in Visual Studio.
5757
2. Connect to ElasticDBQuery database and execute the following T-SQL commands:
5858

59-
```tsql
59+
```sql
6060
CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<master_key_password>';
6161

6262
CREATE DATABASE SCOPED CREDENTIAL ElasticDBQueryCred
@@ -69,7 +69,7 @@ These are used to connect to the shard map manager and the shards:
6969
### External data sources
7070
To create an external data source, execute the following command on the ElasticDBQuery database:
7171

72-
```tsql
72+
```sql
7373
CREATE EXTERNAL DATA SOURCE MyElasticDBQueryDataSrc WITH
7474
(TYPE = SHARD_MAP_MANAGER,
7575
LOCATION = '<server_name>.database.windows.net',
@@ -84,7 +84,7 @@ CREATE EXTERNAL DATA SOURCE MyElasticDBQueryDataSrc WITH
8484
### External tables
8585
Create an external table that matches the Customers table on the shards by executing the following command on ElasticDBQuery database:
8686

87-
```tsql
87+
```sql
8888
CREATE EXTERNAL TABLE [dbo].[Customers]
8989
( [CustomerId] [int] NOT NULL,
9090
[Name] [nvarchar](256) NOT NULL,
@@ -100,7 +100,7 @@ Once you have defined your external data source and your external tables you can
100100

101101
Execute this query on the ElasticDBQuery database:
102102

103-
```tsql
103+
```sql
104104
select count(CustomerId) from [dbo].[Customers]
105105
```
106106

azure-sql/managed-instance/doc-changes-updates-known-issues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Several system views, performance counters, error messages, XEvents, and error l
206206

207207
**Workaround**: Use `sys.databases` view to resolve the actual database name from the physical database name, specified in the form of GUID database identifiers:
208208

209-
```tsql
209+
```sql
210210
SELECT name as ActualDatabaseName, physical_database_name as GUIDDatabaseIdentifier
211211
FROM sys.databases
212212
WHERE database_id > 4;

azure-sql/migration-guides/managed-instance/sql-server-to-managed-instance-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ If you have memory-optimized tables or memory-optimized table types in your on-p
189189
- Choose the Business Critical tier for your target SQL managed instance that supports In-Memory OLTP.
190190
- If you want to migrate to the General Purpose tier in Azure SQL Managed Instance, remove memory-optimized tables, memory-optimized table types, and natively compiled SQL modules that interact with memory-optimized objects before migrating your databases. You can use the following T-SQL query to identify all objects that need to be removed before migration to the General Purpose tier:
191191

192-
```tsql
192+
```sql
193193
SELECT * FROM sys.tables WHERE is_memory_optimized=1
194194
SELECT * FROM sys.table_types WHERE is_memory_optimized=1
195195
SELECT * FROM sys.sql_modules WHERE uses_native_compilation=1

docs/big-data-cluster/big-data-cluster-key-versions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ The main encryption key will be rotated using `azdata bdc kms set –key-provide
146146

147147
The asymmetric key can be seen using the following T-SQL query, with the `sys.asymmetric_keys` system catalog view.
148148

149-
```tsql
149+
```sql
150150
USE master;
151151
select * from sys.asymmetric_keys;
152152
```
153153

154154
The asymmetric key will appear with the naming convention "tde_asymmetric_key_\<version\>". The SQL Server administrator can then change the protector of the DEK to the asymmetric key using [ALTER DATABASE ENCRYPTION KEY](../t-sql/statements/alter-database-encryption-key-transact-sql.md). For example, use the following T-SQL command:
155155

156-
```tsql
156+
```sql
157157
USE db1;
158158
ALTER DATABASE ENCRYPTION KEY ENCRYPTION BY SERVER ASYMMETRIC KEY tde_asymmetric_key_0;
159159
```

docs/connect/odbc/using-always-encrypted-with-the-odbc-driver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ The table below summarizes the behavior of queries, depending on whether Always
114114

115115
The following examples illustrate retrieving and modifying data in encrypted columns. The examples assume a table with the following schema. The SSN and BirthDate columns are encrypted.
116116

117-
```tsql
117+
```sql
118118
CREATE TABLE [dbo].[Patients](
119119
[PatientId] [int] IDENTITY(1,1),
120120
[SSN] [char](11) COLLATE Latin1_General_BIN2

docs/database-engine/configure-windows/adr-cleaner-retry-timeout-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The cleaner is single threaded in SQL Server 2019 and so one SQL Server instance
2828

2929
The following examples sets the cleaner retry timeout.
3030

31-
```tsql
31+
```sql
3232
sp_configure 'show advanced options', 1;
3333
RECONFIGURE;
3434
GO

docs/database-engine/configure-windows/adr-preallocation-factor-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ While the background thread takes workload patterns into consideration, this fac
3737

3838
The following example sets the preallocation factor to 4.
3939

40-
```tsql
40+
```sql
4141
sp_configure 'show advanced options', 1;
4242
RECONFIGURE;
4343
GO

docs/database-engine/configure-windows/polybase-connectivity-configuration-transact-sql.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,22 +119,22 @@ Starting in [!INCLUDE[sssql22-md](../../includes/sssql22-md.md)], Hadoop is no l
119119
### A. List all available configuration settings
120120
The following example shows how to list all configuration options.
121121

122-
```tsql
122+
```sql
123123
EXEC sp_configure;
124124
```
125125

126126
The result returns the option name followed by the minimum and maximum values for the option. The **config_value** is the value that PolyBase will use when reconfiguration is complete. The **run_value** is the value that is currently being used. The **config_value** and **run_value** are usually the same unless the value is in the process of being changed.
127127

128128
### B. List the configuration settings for one configuration name
129129

130-
```tsql
130+
```sql
131131
EXEC sp_configure @configname='hadoop connectivity';
132132
```
133133

134134
### C. Set Hadoop connectivity
135135
This example sets PolyBase to option 7. This option allows PolyBase to create and use external tables on Hortonworks HDP 2.1, 2.2, and 2.3 on Linux and Windows Server, and Azure Blob Storage. For example, SQL could have 30 external tables with 7 of them referencing data on Hortonworks HDP 2.1 on Linux, 4 on Hortonworks HDP 2.2 on Linux, 7 on Hortonworks HDP 2.3 on Linux, and the other 12 referencing Azure Blob Storage.
136136

137-
```tsql
137+
```sql
138138
--Configure external tables to reference data on Hortonworks HDP 2.1, 2.2, and 2.3 on Linux, and Azure Blob Storage
139139

140140
sp_configure @configname = 'hadoop connectivity', @configvalue = 7;

docs/relational-databases/backup-restore/backup-encryption.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The account that does backup operations on an encrypted database requires specif
7676

7777
The following example grants the appropriate permissions for the certificate.
7878

79-
```tsql
79+
```sql
8080
USE [master]
8181
GO
8282
GRANT VIEW DEFINITION ON CERTIFICATE::[<SERVER_CERT>] TO [<db_account>]

0 commit comments

Comments
 (0)