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

Commit 8c203da

Browse files
authored
Merge pull request #9623 from MashaMSFT/20190326_awfix
bulk update syntax correction
2 parents 6694c96 + 4757db4 commit 8c203da

175 files changed

Lines changed: 506 additions & 571 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/2014/database-engine/availability-groups/windows/active-secondaries-readable-secondary-replicas-always-on-availability-groups.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ GO
204204

205205
- For queries running only on memory-optimized tables, the only supported isolation levels are snapshot, repeatable read, and serializable. Any queries with read-uncommitted or read committed isolation level returns an error unless you have enabled the option MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT at the database level.
206206

207-
```tsql
207+
```sql
208208
SET TRANSACTION ISOLATION LEVEL READ_COMMITTED
209209
-- This is not allowed
210210
BEGIN TRAN
@@ -222,7 +222,7 @@ GO
222222

223223
- No locking hints are supported on memory-optimized tables. For example, all of the following queries fail with an error. Only NOLOCK hint is allowed and it is NOOP when used with memory-optimized tables.
224224

225-
```tsql
225+
```sql
226226
SELECT * FROM t_hk WITH (PAGLOCK)
227227
SELECT * FROM t_hk WITH (READPAST)
228228
SELECT * FROM t_hk WITH (ROWLOCK)
@@ -234,7 +234,7 @@ GO
234234

235235
- For cross-container transactions, transactions with session isolation level "snapshot" that access memory-optimized tables is not supported. For example,
236236

237-
```tsql
237+
```sql
238238
SET TRANSACTION ISOLATION LEVEL SNAPSHOT
239239
-- This is not allowed
240240
BEGIN TRAN

docs/2014/database-engine/collations-and-code-pages.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ manager: craigg
2525
> [!IMPORTANT]
2626
> You cannot use order by or group by on index string columns that do not use BIN2 collation.
2727
28-
```tsql
28+
```sql
2929
CREATE DATABASE IMOLTP
3030

3131
ALTER DATABASE IMOLTP ADD FILEGROUP IMOLTP_mod CONTAINS MEMORY_OPTIMIZED_DATA
@@ -54,7 +54,7 @@ GO
5454

5555
- (var)char columns in memory-optimized tables must use code page 1252 collation. This restriction does not apply to n(var)char columns. The following code retrieves all 1252 collations:
5656

57-
```tsql
57+
```sql
5858
-- all supported collations for (var)char columns in memory-optimized tables
5959
select * from sys.fn_helpcollations()
6060
where collationproperty(name, 'codepage') = 1252;
@@ -64,7 +64,7 @@ GO
6464

6565
- Indexes on (n)(var)char columns can only be specified with BIN2 collations (see the first example). The following query retrieves all supported BIN2 collations:
6666

67-
```tsql
67+
```sql
6868
-- all supported collations for indexes on memory-optimized tables and
6969
-- comparison/sorting in natively compiled stored procedures
7070
select * from sys.fn_helpcollations() where name like '%BIN2'
@@ -78,7 +78,7 @@ GO
7878

7979
- Truncation of UTF-16 data is not supported inside natively compiled stored procedures. This means that n(var)char(*n*) values cannot be converted to type n(var)char(*i*), if *i* < *n*, if the collation has _SC property. For example, the following is not supported:
8080

81-
```tsql
81+
```sql
8282
-- column definition using an _SC collation
8383
c2 nvarchar(200) collate Latin1_General_100_CS_AS_SC not null
8484
-- assignment to a smaller variable, requiring truncation
@@ -92,7 +92,7 @@ GO
9292

9393
The following example shows some of the implications and workarounds for the collation limitations in In-Memory OLTP. The example uses the Employees table specified above. This sample list all employees . Notice that for LastName, due to the binary collation, the upper case names are sorted before lower case. Therefore, 'Thomas' comes before 'nolan' because upper case characters have lower code points. FirstName has a case-insensitive collation. So, sorting is by letter of the alphabet, not code point of the characters.
9494

95-
```tsql
95+
```sql
9696
-- insert a number of values
9797
INSERT Employees VALUES (1,'thomas', 'john')
9898
INSERT Employees VALUES (2,'Thomas', 'rupert')

docs/2014/database-engine/configure-windows/configure-the-cost-threshold-for-parallelism-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ FROM sys.dm_os_sys_info
8787

8888
3. Copy and paste the following example into the query window and click **Execute**. This example shows how to use [sp_configure](/sql/relational-databases/system-stored-procedures/sp-configure-transact-sql) to set the value of the `cost threshold for parallelism` option to `10`.
8989

90-
```tsql
90+
```sql
9191
USE AdventureWorks2012 ;
9292
GO
9393
EXEC sp_configure 'show advanced options', 1 ;

docs/2014/database-engine/configure-windows/configure-the-cursor-threshold-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ manager: craigg
7373

7474
3. Copy and paste the following example into the query window and click **Execute**. This example shows how to use [sp_configure](/sql/relational-databases/system-stored-procedures/sp-configure-transact-sql) to set the `cursor threshold` option to `0` so that cursor keysets are generated asynchronously.
7575

76-
```tsql
76+
```sql
7777
USE AdventureWorks2012 ;
7878
GO
7979
EXEC sp_configure 'show advanced options', 1 ;

docs/2014/database-engine/configure-windows/configure-the-default-full-text-language-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ manager: craigg
7272

7373
3. Copy and paste the following example into the query window and click **Execute**. This example shows how to use [sp_configure](/sql/relational-databases/system-stored-procedures/sp-configure-transact-sql) to set the value of the `default full-text` option to Dutch (`1043`).
7474

75-
```tsql
75+
```sql
7676
USE AdventureWorks2012 ;
7777
GO
7878
EXEC sp_configure 'show advanced options', 1 ;

docs/2014/database-engine/configure-windows/configure-the-default-language-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ manager: craigg
6565

6666
3. Copy and paste the following example into the query window and click **Execute**. This example shows how to use [sp_configure](/sql/relational-databases/system-stored-procedures/sp-configure-transact-sql) to configure the `default language` option to French (`2`).
6767

68-
```tsql
68+
```sql
6969
USE AdventureWorks2012 ;
7070
GO
7171
EXEC sp_configure 'default language', 2 ;

docs/2014/database-engine/configure-windows/configure-the-fill-factor-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ manager: craigg
6363

6464
3. Copy and paste the following example into the query window and click **Execute**. This example shows how to use [sp_configure](/sql/relational-databases/system-stored-procedures/sp-configure-transact-sql) to set the value of the `fill factor` option to `100`.
6565

66-
```tsql
66+
```sql
6767
Use AdventureWorks2012;
6868
GO
6969
sp_configure 'show advanced options', 1;

docs/2014/database-engine/configure-windows/configure-the-index-create-memory-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ manager: craigg
7777

7878
3. Copy and paste the following example into the query window and click **Execute**. This example shows how to use [sp_configure](/sql/relational-databases/system-stored-procedures/sp-configure-transact-sql) to set the value of the `index create memory` option to `4096`.
7979

80-
```tsql
80+
```sql
8181
USE AdventureWorks2012 ;
8282
EXEC sp_configure 'show advanced options', 1;
8383
GO

docs/2014/database-engine/configure-windows/configure-the-locks-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ manager: craigg
7676

7777
3. Copy and paste the following example into the query window and click **Execute**. This example shows how to use [sp_configure](/sql/relational-databases/system-stored-procedures/sp-configure-transact-sql) to set the value of the `locks` option to set the number of locks available for all users to `20000`.
7878

79-
```tsql
79+
```sql
8080
Use AdventureWorks2012 ;
8181
GO
8282
sp_configure 'show advanced options', 1;

docs/2014/database-engine/configure-windows/configure-the-max-degree-of-parallelism-server-configuration-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ manager: craigg
8080

8181
3. Copy and paste the following example into the query window and click **Execute**. This example shows how to use [sp_configure](/sql/relational-databases/system-stored-procedures/sp-configure-transact-sql) to configure the `max degree of parallelism` option to `8`.
8282

83-
```tsql
83+
```sql
8484
USE AdventureWorks2012 ;
8585
GO
8686
EXEC sp_configure 'show advanced options', 1;

0 commit comments

Comments
 (0)