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
>The preceding command grants permissions to the computer **SID S-1-15-2-1**, which is equivalent to ALL APPLICATION PACKAGES on an English version of Windows. Alternatively, you can use `icacls "%R_HOME%" /grant "ALL APPLICATION PACKAGES":(OI)(CI)RX /T` on an English version of Windows.
117
117
@@ -128,7 +128,7 @@ Alternatively, right-click the SQL Server Launchpad service in the **Services**
128
128
129
129
## Download Python language extension
130
130
131
-
Download the zip file containing the Python language extension, [python-lang-extension.zip](https://go.microsoft.com/fwlink/?linkid=2143952).
131
+
Download the zip file containing the Python language extension, [python-lang-extension.zip](https://github.com/microsoft/sql-server-language-extensions/releases).
## <a name="download-python-linux"></a> Download Python language extension
276
276
277
-
Download the zip file containing the Python language extension, [python-lang-extension.zip](https://go.microsoft.com/fwlink/?linkid=2143793).
277
+
Download the zip file containing the Python language extension, [python-lang-extension.zip](https://github.com/microsoft/sql-server-language-extensions/releases).
Copy file name to clipboardExpand all lines: docs/machine-learning/install/custom-runtime-r.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,7 @@ As an alternative, right-click the SQL Server Launchpad service in the **Service
158
158
159
159
## Download R language extension
160
160
161
-
Download the zip file containing the R language extension [R-lang-extension.zip](https://go.microsoft.com/fwlink/?linkid=2143953).
161
+
Download the zip file containing the R language extension [R-lang-extension.zip](https://github.com/microsoft/sql-server-language-extensions/releases).
Download the zip file containing the R language extension [R-lang-extension.zip](https://go.microsoft.com/fwlink/?linkid=2143954).
340
+
Download the zip file containing the R language extension [R-lang-extension.zip](https://github.com/microsoft/sql-server-language-extensions/releases).
Copy file name to clipboardExpand all lines: docs/relational-databases/databases/rebuild-system-databases.md
+38-8Lines changed: 38 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,21 +23,23 @@ ms.author: "sstein"
23
23
24
24
**In This Topic**
25
25
26
-
-**Before you begin:**
26
+
-**Before you begin:**
27
27
28
28
[Limitations and Restrictions](#Restrictions)
29
29
30
30
[Prerequisites](#Prerequisites)
31
31
32
-
-**Procedures:**
32
+
-**Procedures:**
33
33
34
34
[Rebuild System Databases](#RebuildProcedure)
35
35
36
36
[Rebuild the resource Database](#Resource)
37
37
38
-
[Create a New msdb Database](#CreateMSDB)
38
+
[Create a New msdb Database](#CreateMSDB)
39
+
40
+
[Rebuild the tempdb Database](#RebuildTempdb)
39
41
40
-
-**Follow Up:**
42
+
-**Follow Up:**
41
43
42
44
[Troubleshoot Rebuild Errors](#Troubleshoot)
43
45
@@ -49,15 +51,15 @@ ms.author: "sstein"
49
51
### <aname="Prerequisites"></a> Prerequisites
50
52
Perform the following tasks before you rebuild the system databases to ensure that you can restore the system databases to their current settings.
51
53
52
-
1.Record all server-wide configuration values.
54
+
1. Record all server-wide configuration values.
53
55
54
-
```
56
+
```SQL
55
57
SELECT*FROMsys.configurations;
56
58
```
57
59
58
60
2. Record all hotfixes applied to the instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] and the current collation. You must reapply these hotfixes after rebuilding the system databases.
59
61
60
-
```
62
+
```SQL
61
63
SELECT
62
64
SERVERPROPERTY('ProductVersion ') AS ProductVersion,
63
65
SERVERPROPERTY('ProductLevel') AS ProductLevel,
@@ -68,7 +70,7 @@ ms.author: "sstein"
68
70
69
71
3. Record the current location of all data and log files for the system databases. Rebuilding the system databases installs all system databases to their original location. If you have moved system database data or log files to a different location, you must move the files again.
70
72
71
-
```
73
+
```SQL
72
74
SELECT name, physical_name AS current_file_location
73
75
FROM sys.master_files
74
76
WHERE database_id IN (DB_ID('master'), DB_ID('model'), DB_ID('msdb'), DB_ID('tempdb'));
@@ -152,6 +154,7 @@ ms.author: "sstein"
152
154
6. From the **Ready to Repair** page, click **Repair**. The Complete page indicates that the operation is finished.
153
155
154
156
## <a name="CreateMSDB"></a> Create a New msdb Database
157
+
155
158
If the **msdb** database is damaged and you do not have a backup of the **msdb** database, you can create a new **msdb** by using the **instmsdb** script.
156
159
157
160
> [!WARNING]
@@ -180,6 +183,33 @@ ms.author: "sstein"
180
183
9. Recreate the user content stored in the **msdb** database, such as jobs, alert, etc.
181
184
182
185
10. Backup the **msdb** database.
186
+
187
+
## <a name="RebuildTempdb"></a> Rebuild the Tempdb Database
188
+
189
+
If the **tempdb** database is damaged and the database engine fails to start, you can rebuild **tempdb** without the need to rebuild all system databases.
190
+
191
+
1. Rename the current Tempdb.mdfandTemplog.ldf files, if not missing.
192
+
1. Start [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] from a Command Prompt by using the following command.
For a default instance name use MSSQLSERVER, for named instance use MSSQL$<instance_name>. Trace flag 4022 disables execution of startup stored procedures. The -mSQLCMD allows only [sqlcmd.exe](../../ssms/scripting/sqlcmd-use-the-utility.md) to connect to the server (see [Other Startup Options](../../database-engine/configure-windows/database-engine-service-startup-options.md#other-startup-options))
199
+
200
+
> [!Note]
201
+
> Make sure that the command prompt window remains open after the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] starts. Closing the command prompt window will terminate the process.
202
+
203
+
1. Connect to the server by using **sqlcmd**, and then use the following stored procedure to reset the status of the tempdb database.
204
+
205
+
```sql
206
+
exec master..sp_resetstatus Tempdb
207
+
```
208
+
209
+
1. Shut down the server by pressing CTRL+C in the command prompt window
210
+
211
+
1. Restart the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] service. This creates a new set of tempdb database files, and recovers the tempdb database.
Copy file name to clipboardExpand all lines: docs/sql-server/azure-arc/overview.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ ms.reviewer: mikeray
8
8
ms.date: 09/10/2020
9
9
ms.topic: conceptual
10
10
ms.prod: sql
11
+
ms.custom: references_regions
11
12
---
12
13
13
14
# Azure Arc enabled SQL Server (preview)
@@ -20,7 +21,7 @@ The SQL Server can be installed in a virtual or physical machine running Windows
20
21
21
22
The public preview of Azure Arc enabled SQL Server supports a set of solutions that require the Microsoft Monitoring Agent (MMA) server extension to be installed and connected to a Azure Log analytics workspace for data collection and reporting. These solutions include Advanced data security using Azure Security Center and Azure Sentinel, and SQL Environment health checks using On-demand SQL Assessment feature.
22
23
23
-
The following diagram illustrates the architecture of Azure Arc enable SQL Server using the virtualized environment.
24
+
The following diagram illustrates the architecture of Azure Arc enable SQL Server.
Copy file name to clipboardExpand all lines: docs/t-sql/database-console-commands/dbcc-traceon-trace-flags-transact-sql.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,7 @@ The following table lists and describes the trace flags that are available in [!
126
126
|**3625**|Limits the amount of information returned to users who are not members of the sysadmin fixed server role, by masking the parameters of some error messages using '\*\*\*\*\*\*'. This can help prevent disclosure of sensitive information.<br /><br />**Scope**: global only|
127
127
|**3656**|Enables symbol resolution on stack dumps when the Debugging Tools for Windows are installed. <br /><br />**WARNING:** This is a debugging trace flag and not meant for production environment use.<br /><br />**Note:** Starting with [!INCLUDE[sql-server-2019](../../includes/sssqlv15-md.md)], trace flag [2592](#2592) must be enabled in conjunction with trace flag 3656 to enable symbol resolution. <br/><br/>**Scope**: global and session|
128
128
|**3924**|Enables automatic removal of orphaned DTC transactions with SPID=-2, which is a problem for some 3rd party transaction monitors. For more information, see this [Microsoft Support article](https://support.microsoft.com/help/4519668) and [Microsoft Support article](https://support.microsoft.com/help/4511816).<br /><br />**Scope**: global only|
129
+
|**4022**|Disables automatic execution of stored procedures when [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] starts. For more information about automatic execution of startup stored procedures see [sp_procoption](../../relational-databases/system-stored-procedures/sp-procoption-transact-sql.md) <br /><br />**Scope**: global only|
129
130
|**4136**|Disables parameter sniffing unless OPTION(RECOMPILE), WITH RECOMPILE or OPTIMIZE FOR \<value> is used. For more information, see this [Microsoft Support article](https://support.microsoft.com/kb/980653).<br /><br />Starting with [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)], to accomplish this at the database level, see the PARAMETER_SNIFFING option in [ALTER DATABASE SCOPED CONFIGURATION (Transact-SQL)](../../t-sql/statements/alter-database-scoped-configuration-transact-sql.md).<br /><br />To accomplish the same result at the query level, add the OPTIMIZE FOR UNKNOWN [query hint](../../t-sql/queries/hints-transact-sql-query.md). The OPTIMIZE FOR UNKNOWN hint doesn't disable the parameter sniffing mechanism, but effectively bypasses it to achieve the same intended result.<br />Starting with [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] SP1, a second option to accomplish this at the query level is to add the USE HINT 'DISABLE_PARAMETER_SNIFFING' [query hint](../../t-sql/queries/hints-transact-sql-query.md) instead of using this trace flag.<br /><br />**Note:** Please ensure that you thoroughly test this option, before rolling it into a production environment.<br /><br />**Scope**: global or session|
130
131
|**4137**|Causes [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] to generate a plan using minimum selectivity when estimating AND predicates for filters to account for partial correlation instead of independence, under the query optimizer cardinality estimation model of [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] and earlier versions (70). For more information, see this [Microsoft Support article](https://support.microsoft.com/kb/2658214).<br /><br />Starting with [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] SP1, to accomplish this at the query level, add the USE HINT 'ASSUME_MIN_SELECTIVITY_FOR_FILTER_ESTIMATES' [query hint](../../t-sql/queries/hints-transact-sql-query.md) instead of using this trace flag when using the CE 70.<br /><br />**Note:** Please ensure that you thoroughly test this option, before rolling it into a production environment.<br /><br />**Note:** This trace flag does not apply to CE version 120 or above. Use trace flag 9471 instead.<br /><br />**Scope**: global or session or query (QUERYTRACEON)|
131
132
|**4138**|Causes [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] to generate a plan that does not use row goal adjustments with queries that contain TOP, OPTION (FAST N), IN, or EXISTS keywords. For more information, see this [Microsoft Support article](https://support.microsoft.com/kb/2667211).<br /><br />Starting with [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] SP1, to accomplish this at the query level, add the USE HINT 'DISABLE_OPTIMIZER_ROWGOAL' [query hint](../../t-sql/queries/hints-transact-sql-query.md) instead of using this trace flag.<br /><br />**Note:** Please ensure that you thoroughly test this option, before rolling it into a production environment.<br /><br />**Scope**: global or session or query (QUERYTRACEON)|
@@ -159,7 +160,7 @@ The following table lists and describes the trace flags that are available in [!
159
160
|**8048**|Converts NUMA partitioned memory objects into CPU partitioned. For more information, see this [Microsoft Support article](https://support.microsoft.com/kb/2809338).<br /><br />**Note:** Starting with [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] SP2 and [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] this behavior is dynamic and controlled by the engine.<br /><br />**Scope**: global only|
160
161
|**8075**|Reduces [VAS](../../relational-databases/memory-management-architecture-guide.md#changes-to-memory-management-starting-2012-11x-gm) fragmentation when you receive memory page allocation errors on a 64-bit [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] or [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)]. For more information, see this [Microsoft Support article](https://support.microsoft.com/kb/3074434).<br /><br />**Note:** This trace flag applies to [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)], [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] RTM CU10, and [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] SP1 CU3. Starting with [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] this behavior is controlled by the engine and trace flag 8075 has no effect.<br /><br />**Scope**: global only|
161
162
|**8079**|Allows [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] SP2 to interrogate the hardware layout and automatically configure Soft-NUMA on systems reporting 8 or more CPUs per NUMA node. The automatic Soft-NUMA behavior is Hyperthread (HT/logical processor) aware. The partitioning and creation of additional nodes scales background processing by increasing the number of listeners, scaling and network and encryption capabilities.<br /><br />**Note:** This trace flag applies to [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] SP2. Starting with [!INCLUDE[ssSQL15](../../includes/sssql15-md.md)] this behavior is controlled by the engine and trace flag 8079 has no effect.<br /><br />**Scope**: global only|
162
-
|**8099**|Enables a spinlock contention fix for high-end systems running [!INCLUDE[sql-server-2019](../../includes/sssqlv15-md.md)] serving many concurrent users.<br /><br />**Note:** This trace flag applies to [!INCLUDE[sql-server-2019](../../includes/sssqlv15-md.md)] CU2 and higher builds. For more information, see this [Microsoft Support article](https://support.microsoft.com/kb/4538688).<br /><br />**Scope**: global only|
163
+
|**8099**|Enables a spinlock contention fix for high-end systems running [!INCLUDE[sql-server-2019](../../includes/sssqlv15-md.md)] serving many concurrent users.<br /><br />**Note:** This trace flag applies to [!INCLUDE[sql-server-2019](../../includes/sssqlv15-md.md)] CU2 and CU3 only. Starting with [!INCLUDE[sql-server-2019](../../includes/sssqlv15-md.md)] CU4, this behavior is enabled by default. For more information, see this [Microsoft Support article](https://support.microsoft.com/kb/4538688).<br /><br />**Scope**: global only|
163
164
|**8207**|Enables singleton updates for Transactional Replication and CDC. Updates to subscribers can be replicated as a DELETE and INSERT pair. This might not meet business rules, such as firing an UPDATE trigger. With trace flag 8207, an update to a unique column that affects only one row (a singleton update) is replicated as an UPDATE and not as a DELETE or INSERT pair. If the update affects a column on which a unique constraint exists, or if the update affects multiple rows, the update is still replicated as a DELETE or INSERT pair. For more information, see this [Microsoft Support article](https://support.microsoft.com/kb/302341).<br /><br />**Scope**: global only|
164
165
|**8721**|Reports to the error log when auto-update statistics executes. For more information, see this [Microsoft Support article](https://support.microsoft.com/kb/195565).<br /><br />**Note:** This trace flag requires trace flag [3605](#3605) to be enabled.<br /><br />**Scope**: global only|
165
166
|**8744**|Disable pre-fetching for the [Nested Loops](../../relational-databases/performance/joins.md#nested_loops) operator.<br /><br />**WARNING:** Incorrect use of this trace flag may cause additional physical reads when [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] executes plans that contain the Nested Loops operator.<br /><br />**Scope**: global and session|
0 commit comments