Skip to content

Commit b5385e6

Browse files
committed
Merge branch 'master' into release-arcee-ga
2 parents e1f312a + dd826dd commit b5385e6

43 files changed

Lines changed: 200 additions & 170 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/connect/oledb/ole-db-how-to/results/execute-stored-procedure-with-odbc-call-and-process-output.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ ms.author: v-daenge
5151

5252
Execute the third ( [!INCLUDE[tsql](../../../../includes/tsql-md.md)]) code listing to delete the stored procedure used by the application.
5353

54-
```
54+
```sql
5555
USE AdventureWorks
5656
if exists (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[myProc]'))
5757
DROP PROCEDURE myProc
5858
GO
5959

6060
CREATE PROCEDURE myProc
61-
@inparam nvarchar(5),,
61+
@inparam nvarchar(5),
6262
@outparam int OUTPUT
6363

6464
AS
@@ -73,7 +73,7 @@ ELSE
7373
GO
7474
```
7575

76-
```
76+
```cpp
7777
// compile with: ole32.lib oleaut32.lib
7878
void InitializeAndEstablishConnection();
7979

@@ -345,7 +345,7 @@ void InitializeAndEstablishConnection() {
345345
}
346346
```
347347
348-
```
348+
```sql
349349
USE AdventureWorks
350350
DROP PROCEDURE myProc
351351
GO

docs/database-engine/availability-groups/windows/configure-backup-on-availability-replicas-sql-server.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ ms.author: chadam
160160
To take the automated backup preference into account for a given availability group, on each server instance that hosts an availability replica whose backup priority is greater than zero (>0), you need to script backup jobs for the databases in the availability group. To determine whether the current replica is the preferred backup replica, use the [sys.fn_hadr_backup_is_preferred_replica](../../../relational-databases/system-functions/sys-fn-hadr-backup-is-preferred-replica-transact-sql.md) function in your backup script. If the availability replica that is hosted by the current server instance is the preferred replica for backups, this function returns 1. If not, the function returns 0. By running a simple script on each availability replica that queries this function, you can determine which replica should run a given backup job. For example, a typical snippet of a backup-job script would look like:
161161
162162
```sql
163-
IF (NOT sys.fn_hadr_backup_is_preferred_replica(@DBNAME))
163+
IF (sys.fn_hadr_backup_is_preferred_replica(@DBNAME) != 1)
164164
BEGIN
165165
Select 'This is not the preferred replica, exiting with success';
166166
RETURN 0 -- This is a normal, expected condition, so the script returns success
167167
END
168-
BACKUP DATABASE @DBNAME TO DISK=<disk>
168+
BACKUP DATABASE @DBNAME TO DISK = '<path to backup file>'
169169
WITH COPY_ONLY;
170170
```
171171

docs/machine-learning/predictions/real-time-scoring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Because the binary format is the same as that used by the PREDICT function, you
106106
DECLARE @irismodel varbinary(max)
107107
SELECT @irismodel = [native_model_object] from [ml_models]
108108
WHERE model_name = 'iris.dtree'
109-
AND model_version = 'v1''
109+
AND model_version = 'v1'
110110

111111
EXEC sp_rxPredict
112112
@model = @irismodel,

docs/relational-databases/collations/set-or-change-the-database-collation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ When a database collation is changed, only new tables will inherit the new datab
8181

8282
DROP TABLE dbo.MyTable;
8383

84-
EXEC sp_rename 'dbo.MyTable2', 'dbo.MyTable;
84+
EXEC sp_rename 'dbo.MyTable2', 'dbo.MyTable';
8585
```
8686

8787
- Copy data to a new database that uses the new collation, and replace the original database. Create a new database using the new collation, and transfer the data from the original database via tools like [!INCLUDE[ssISnoversion](../../includes/ssisnoversion-md.md)] or the Import/Export Wizard in [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)]. This is a simpler approach for complex schemas. It would also require a final data syncronization between the original and the new databases before the final cut-off, if data continues to be changed by applications.

docs/relational-databases/databases/contained-database-collations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ author: WilliamDAssafMSFT
1515
ms.author: wiassaf
1616
---
1717
# Contained Database Collations
18-
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
18+
[!INCLUDE [SQL Server Azure SQL Managed Instance](../../includes/applies-to-version/sql-asdbmi.md)]
1919
Various properties affect the sort order and equality semantics of textual data, including case sensitivity, accent sensitivity, and the base language being used. These qualities are expressed to [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] through the choice of collation for the data. For a more in-depth discussion of collations themselves, see [Collation and Unicode Support](../../relational-databases/collations/collation-and-unicode-support.md).
2020

2121
Collations apply not only to data stored in user tables, but to all text handled by [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], including metadata, temporary objects, variable names, etc. The handling of these differs in contained and non-contained databases. This change will not affect many users, but helps provide instance independence and uniformity. But this may also cause some confusion, as well as problems for sessions that access both contained and non-contained databases.

docs/relational-databases/databases/modified-features-contained-database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ author: WilliamDAssafMSFT
1515
ms.author: wiassaf
1616
---
1717
# Modified Features (Contained Database)
18-
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
18+
[!INCLUDE [SQL Server Azure SQL Managed Instance](../../includes/applies-to-version/sql-asdbmi.md)]
1919
The following features have been modified to be supported by a partially contained database. Features are usually modified so they do not cross the database boundary.
2020

2121
For more information, see [Contained Databases](../../relational-databases/databases/contained-databases.md).

docs/relational-databases/databases/security-best-practices-with-contained-databases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.author: vanto
1515
ms.reviewer: jaszymas
1616
---
1717
# Security Best Practices with Contained Databases
18-
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
18+
[!INCLUDE [SQL Server Azure SQL Managed Instance](../../includes/applies-to-version/sql-asdbmi.md)]
1919

2020
Contained databases have some unique threats that should be understood and mitigated by [!INCLUDE[ssDEnoversion](../../includes/ssdenoversion-md.md)] administrators. Most of the threats are related to the **USER WITH PASSWORD** authentication process, which moves the authentication boundary from the [!INCLUDE[ssDE](../../includes/ssde-md.md)] level to the database level.
2121

docs/relational-databases/indexes/columnstore-indexes-data-warehouse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ BEGIN TRAN
115115
-- The query plan chooses a seek operation on the nonclustered index
116116
-- and takes the row lock
117117
SELECT * FROM t_account WHERE AccountKey = 100;
118-
END TRAN
118+
COMMIT TRAN
119119
```
120120

121121
### Snapshot isolation and read-committed snapshot isolations

docs/relational-databases/indexes/get-started-with-columnstore-for-real-time-operational-analytics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.author: mikeray
1414
monikerRange: "=azuresqldb-current||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current"
1515
---
1616
# Get started with Columnstore for real-time operational analytics
17-
[!INCLUDE [SQL Server Azure SQL Database](../../includes/applies-to-version/sql-asdb.md)]
17+
[!INCLUDE [SQL Server Azure SQL Database Azure SQL Managed Instance](../../includes/applies-to-version/sql-asdb-asdbmi.md)]
1818

1919
[!INCLUDE[sssql16-md](../../includes/sssql16-md.md)] introduces real-time operational analytics, the ability to run both analytics and OLTP workloads on the same database tables at the same time. Besides running analytics in real time, you can also eliminate the need for ETL and a data warehouse.
2020

docs/relational-databases/json/optimize-json-processing-with-in-memory-oltp.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ CREATE TABLE xtp.Product(
120120
INDEX [idx_Product_MadeIn] NONCLUSTERED (MadeIn)
121121

122122
) WITH (MEMORY_OPTIMIZED=ON)
123+
GO
123124

124125
ALTER TABLE Product
125126
ADD INDEX [idx_Product_Cost] NONCLUSTERED HASH(Cost)
@@ -142,6 +143,7 @@ AS BEGIN
142143
JOIN OPENJSON(@ProductIds)
143144
ON ProductID = value
144145
END;
146+
GO
145147

146148
CREATE PROCEDURE xtp.UpdateProductData(@ProductId int, @Property nvarchar(100), @Value nvarchar(100))
147149
WITH SCHEMABINDING, NATIVE_COMPILATION
@@ -152,6 +154,7 @@ AS BEGIN
152154
SET Data = JSON_MODIFY(Data, @Property, @Value)
153155
WHERE ProductID = @ProductId;
154156
END
157+
GO
155158
```
156159

157160
## Learn more about JSON in SQL Server and Azure SQL Database

0 commit comments

Comments
 (0)