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

Commit b4f01e0

Browse files
authored
Merge pull request #18225 from markingmyname/ghjan21
[Issues] Issue-a-thon changes Jan 2021
2 parents 1f8ad9f + 33c1f9c commit b4f01e0

2 files changed

Lines changed: 34 additions & 21 deletions

File tree

docs/database-engine/configure-windows/manage-certificates.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
---
2-
title: "Certificate Management (SQL Server Configuration Manager) | Microsoft Docs"
2+
title: Certificate Management (SQL Server Configuration Manager)
33
description: Learn how to install certificates in various SQL Server configurations. Examples include single instances, failover clusters, and Always On availability groups.
4-
ms.custom: ""
5-
ms.date: "01/16/2019"
64
ms.prod: sql
75
ms.prod_service: high-availability
8-
ms.reviewer: ""
96
ms.technology: configuration
107
ms.topic: conceptual
118
helpviewer_keywords:
@@ -21,7 +18,11 @@ helpviewer_keywords:
2118
ms.assetid: e1e55519-97ec-4404-81ef-881da3b42006
2219
author: markingmyname
2320
ms.author: maghan
21+
ms.reviewer: ""
22+
ms.custom: ""
23+
ms.date: "01/12/2021"
2424
---
25+
2526
# Certificate Management (SQL Server Configuration Manager)
2627

2728
This topic describes how to deploy and manage certificates across your SQL Server Always On Failover Cluster or Availability Group topology.
@@ -37,18 +38,29 @@ SSL/TLS certificates are widely used to secure access to SQL Server. With earlie
3738
> You can use certificate management in SQL Server Configuration Manager with lower versions of SQL Server, starting with SQL Server 2008.
3839
3940
## <a name="provision-single-server-cert"></a> To install a certificate for a single SQL Server instance
40-
41+
42+
::: moniker range=">=sql-server-ver15"
4143
1. In SQL Server Configuration Manager, in the console pane, expand **SQL Server Network Configuration**.
42-
44+
4345
2. Right-click **Protocols for** *&lt;instance Name&gt;*, and then select **Properties**.
44-
46+
4547
3. Choose the **Certificate** tab, and then select **Import**.
46-
48+
4749
4. Select **Browse** and then select the certificate file.
48-
50+
4951
5. Select **Next** to validate the certificate. If there are no errors, select **Next** to import the certificate to the local instance.
50-
51-
52+
::: moniker-end
53+
54+
::: moniker range="<= sql-server-2017"
55+
1. In SQL Server Configuration Manager, in the console pane, expand **SQL Server Network Configuration**.
56+
57+
2. Right-click **Protocols for** *&lt;instance Name&gt;*, and then select **Properties**.
58+
59+
3. Select a certificate from the **Certificate** drop-down menu, and then select **Apply**.
60+
61+
4. Select **OK**.
62+
::: moniker-end
63+
5264
## <a name="provision-failover-cluster-cert"></a> To install a certificate in a failover cluster instance configuration
5365

5466
1. In SQL Server Configuration Manager, in the console pane, expand **SQL Server Network Configuration**.

docs/t-sql/functions/datediff-big-transact-sql.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
---
2+
title: DATEDIFF_BIG (Transact-SQL)
23
description: "DATEDIFF_BIG (Transact-SQL)"
3-
title: "DATEDIFF_BIG (Transact-SQL) | Microsoft Docs"
4-
ms.custom: ""
5-
ms.date: "07/18/2019"
64
ms.prod: sql
75
ms.prod_service: "database-engine, sql-database"
8-
ms.reviewer: ""
96
ms.technology: t-sql
107
ms.topic: "language-reference"
118
f1_keywords:
@@ -21,7 +18,11 @@ helpviewer_keywords:
2118
ms.assetid: 19ac1693-3cfa-400d-bf83-20a9cb46599a
2219
author: cawrites
2320
ms.author: chadam
21+
ms.reviewer: ""
22+
ms.custom: ""
23+
ms.date: "01/12/2021"
2424
---
25+
2526
# DATEDIFF_BIG (Transact-SQL)
2627

2728
[!INCLUDE [sqlserver2016-asdb-asdbmi](../../includes/applies-to-version/sqlserver2016-asdb-asdbmi.md)]
@@ -84,13 +85,13 @@ See *startdate*.
8485
Signed **bigint**
8586

8687
## Return Value
87-
Returns the **bigint** difference between the *startdate* and *enddate*, expressed in the coundary set by *datepart*.
88+
Returns the **bigint** difference between the *startdate* and *enddate*, expressed in the boundary set by *datepart*.
8889

89-
For a return value out of range for **bigint** (-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807), `DATEDIFF_BIG` returns an error. Unlike `DATEDIFF` which returns an **int** and therefore may overflow with a precision of **minute** or higher, `DATEDIFF_BIG` can only overflow if using **nanosecond** precision where the difference between *enddate* and *startdate* is more than 292 years, 3 months, 10 days, 23 hours, 47 minutes and 16.8547758 seconds.
90+
For a return value out of range for **bigint** (-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807), `DATEDIFF_BIG` returns an error. Unlike , which returns an **int** and therefore may overflow a **minute** or higher, `DATEDIFF_BIG` can only overflow if using **nanosecond** precision where the difference between *enddate* and *startdate* is more than 292 years, 3 months, 10 days, 23 hours, 47 minutes, and 16.8547758 seconds.
9091

91-
If *startdate* and *enddate* are both assigned only a time value, and the *datepart* is not a time *datepart*, `DATEDIFF_BIG` returns 0.
92+
If *startdate* and *enddate* are both assigned only a time value, and the *datepart* isn't a time *datepart*, `DATEDIFF_BIG` returns 0.
9293

93-
`DATEDIFF_BIG` does not use a time zone offset component of *startdate* or *enddate* to calculate the return value.
94+
`DATEDIFF_BIG` does use a time zone offset component of *startdate* or *enddate* to calculate the return value.
9495

9596
For a **smalldatetime** value used for *startdate* or *enddate*, `DATEDIFF_BIG` always sets seconds and milliseconds to 0 in the return value because [smalldatetime](../../t-sql/data-types/smalldatetime-transact-sql.md) only has accuracy to the minute.
9697

@@ -117,11 +118,11 @@ SELECT DATEDIFF_BIG(millisecond, '2005-12-31 23:59:59.9999999', '2006-01-01 00:0
117118
## Remarks
118119
Use `DATEDIFF_BIG` in the `SELECT <list>`, `WHERE`, `HAVING`, `GROUP BY` and `ORDER BY` clauses.
119120

120-
`DATEDIFF_BIG` implicitly casts string literals as a **datetime2** type. This means that `DATEDIFF_BIG` does not support the format YDM when the date is passed as a string. You must explicitly cast the string to a **datetime** or **smalldatetime** type to use the YDM format.
121+
`DATEDIFF_BIG` implicitly casts string literals as a **datetime2** type. This means that `DATEDIFF_BIG` doesn't support the format YDM when the date is passed as a string. You must explicitly cast the string to a **datetime** or **smalldatetime** type to use the YDM format.
121122

122123
Specifying `SET DATEFIRST` has no effect on `DATEDIFF_BIG`. `DATEDIFF_BIG` always uses Sunday as the first day of the week to ensure the function operates in a deterministic way.
123124

124-
`DATEDIFF_BIG` may overflow with a precision of **nanosecond** if the difference between *enddate* and *startdate* returns a value that is out of range for **bigint**.
125+
`DATEDIFF_BIG` may overflow with a **nanosecond** if the difference between *enddate* and *startdate* returns a value that is out of range for **bigint**.
125126

126127
## Examples
127128

0 commit comments

Comments
 (0)