You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/database-engine/configure-windows/manage-certificates.md
+23-11Lines changed: 23 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,8 @@
1
1
---
2
-
title: "Certificate Management (SQL Server Configuration Manager) | Microsoft Docs"
2
+
title: Certificate Management (SQL Server Configuration Manager)
3
3
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"
6
4
ms.prod: sql
7
5
ms.prod_service: high-availability
8
-
ms.reviewer: ""
9
6
ms.technology: configuration
10
7
ms.topic: conceptual
11
8
helpviewer_keywords:
@@ -21,7 +18,11 @@ helpviewer_keywords:
21
18
ms.assetid: e1e55519-97ec-4404-81ef-881da3b42006
22
19
author: markingmyname
23
20
ms.author: maghan
21
+
ms.reviewer: ""
22
+
ms.custom: ""
23
+
ms.date: "01/12/2021"
24
24
---
25
+
25
26
# Certificate Management (SQL Server Configuration Manager)
26
27
27
28
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
37
38
> You can use certificate management in SQL Server Configuration Manager with lower versions of SQL Server, starting with SQL Server 2008.
38
39
39
40
## <aname="provision-single-server-cert"></a> To install a certificate for a single SQL Server instance
40
-
41
+
42
+
::: moniker range=">=sql-server-ver15"
41
43
1. In SQL Server Configuration Manager, in the console pane, expand **SQL Server Network Configuration**.
42
-
44
+
43
45
2. Right-click **Protocols for***<instance Name>*, and then select **Properties**.
44
-
46
+
45
47
3. Choose the **Certificate** tab, and then select **Import**.
46
-
48
+
47
49
4. Select **Browse** and then select the certificate file.
48
-
50
+
49
51
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***<instance Name>*, 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
+
52
64
## <aname="provision-failover-cluster-cert"></a> To install a certificate in a failover cluster instance configuration
53
65
54
66
1. In SQL Server Configuration Manager, in the console pane, expand **SQL Server Network Configuration**.
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*.
88
89
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.
90
91
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.
92
93
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.
94
95
95
96
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.
Use `DATEDIFF_BIG` in the `SELECT <list>`, `WHERE`, `HAVING`, `GROUP BY` and `ORDER BY` clauses.
119
120
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.
121
122
122
123
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.
123
124
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**.
0 commit comments