Skip to content

Commit 767ab30

Browse files
authored
Merge pull request #3674 from MicrosoftDocs/master
10/26 AM Publish
2 parents e9caa51 + decf4cd commit 767ab30

File tree

3,164 files changed

+148867
-145672
lines changed

Some content is hidden

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

3,164 files changed

+148867
-145672
lines changed

docs/advanced-analytics/python/what-is-revoscalepy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ You can run code that includes **revoscalepy** functions either locally or in a
119119

120120
When running locally, you typically run a Python script from the command line, or from a Python development environment, and specify a SQL Server compute context using one of the **revoscalepy** functions. You can use the remote compute context for the entire code, or for individual functions. For example, you might want to offload model training to the server to use the latest data and avoid data movement.
121121

122-
If you want to put a complete Python script inside the stored procedure, [sp_execute_external_script](https://docs.microsoft.com/sql/relational-databases/system-stored-procedures/sp-execute-external-script-transact-sql), we recommend that you rewrite the code as a single function that has clearly defined inputs and outputs. Inputs and outputs must be **pandas** data frames. When this is done, you can call the stored procedure from any client that supports T-SQL, easily pass SQL queries as inputs, and save the results to SQL tables. For an example, see [In-Database Python Analytics for L Developers](../tutorials/sqldev-in-database-python-for-sql-developers.md).
122+
If you want to put a complete Python script inside the stored procedure, [sp_execute_external_script](https://docs.microsoft.com/sql/relational-databases/system-stored-procedures/sp-execute-external-script-transact-sql), we recommend that you rewrite the code as a single function that has clearly defined inputs and outputs. Inputs and outputs must be **pandas** data frames. When this is done, you can call the stored procedure from any client that supports T-SQL, easily pass SQL queries as inputs, and save the results to SQL tables. For an example, see [In-Database Python Analytics for SQL Developers](../tutorials/sqldev-in-database-python-for-sql-developers.md).
123123

124124
### Using remote compute contexts
125125

@@ -165,4 +165,4 @@ If you use Python Tools for Visual Studio, you can use IntelliSense to get synta
165165

166166
## See Also
167167

168-
[Python tutorials](../tutorials/sql-server-python-tutorials.md)
168+
[Python tutorials](../tutorials/sql-server-python-tutorials.md)

docs/analysis-services/tabular-models/ssas-import-query.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Import data by using a native query (Analysis Services) | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "10/02/2017"
4+
ms.date: "10/26/2017"
55
ms.prod: "sql-server-2017"
66
ms.reviewer: ""
77
ms.suite: ""
@@ -17,6 +17,8 @@ ms.workload: "Inactive"
1717
---
1818
# Import data by using a native query
1919

20+
[!INCLUDE[ssas-appliesto-sqlas-all-aas](../../includes/ssas-appliesto-sqlas-all-aas.md)]
21+
2022
For tabular 1400 models, the new Get Data experience in Visual Studio Analysis Services projects provides immense flexibility in how you can mashup your data during import. This article describes creating a connection to a datasource and then creating a native SQL query to specify data import.
2123

2224
In order to complete the tasks described in this article, make sure you're using the latest version of SSDT. If you're using Visual Studio 2017, make sure you've downloaded and installed the September 2017 or later Microsoft Analysis Services Projects VSIX.
Lines changed: 50 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,56 @@
1-
---
1+
---
22
title: "master Database (SQL Server PDW)"
33
author: "barbkess"
44
ms.author: "barbkess"
55
manager: "jhubbard"
66
ms.prod: "analytics-platform-system"
77
ms.technology: "mpp-data-warehouse"
8-
ms.custom: na
9-
ms.date: 01/13/2017
10-
ms.reviewer: na
11-
ms.suite: na
12-
ms.tgt_pltfrm: na
13-
ms.topic: article
14-
ms.assetid: c71617c0-6689-4f52-81c6-58f4cf7c7377
15-
caps.latest.revision: 8
16-
17-
---
18-
# master Database
19-
The SQL Server PDW master database stores appliance-level login information and the database catalog. It is a SQL Server master database that resides on the Control node. As such, it provides similar functionality to SQL Server PDW as master provides to SQL Server.
20-
21-
For more information about system databases, see [System Databases](system-databases.md).
22-
23-
## Limitations and Restrictions
24-
The following list describes the operations you cannot perform on the SQL Server PDW master database.
25-
26-
You *cannot:*
27-
28-
- Perform a differential backup of master.
29-
30-
- Create user objects in master.
31-
32-
- Change the collation of master.
33-
34-
- Change the owner of master.
35-
36-
- Drop or rename master.
37-
38-
- Modify permissions to master.
39-
40-
- Execute **DBCC SHRINKLOG**.
41-
42-
## Related Tasks
43-
44-
|Task|Description|
45-
|--------|---------------|
46-
|Create a full backup of master.|Example:<br /><br />`BACKUP DATABASE master TO backup_directory;`<br /><br />For more information, see [BACKUP DATABASE](../t-sql/statements/backup-database-parallel-data-warehouse.md).|
47-
|Restore the master database|To restore the master database, use the [Restore the Master Database](restore-the-master-database.md) page in the Configuration Manager tool.|
48-
|View database catalog information.|`SELECT * FROM master.sys.databases;`|
49-
|View system-wide login and permission information.|`SELECT * FROM master.sys.server_permissions;`<br /><br />`SELECT * FROM master.sys.server_principals;`<br /><br />`SELECT * FROM master.sys.sql_logins;`|
50-
51-
<!-- MISSING LINKS
52-
## See Also
53-
[Common Metadata Query Examples &#40;SQL Server PDW&#41;](../sqlpdw/common-metadata-query-examples-sql-server-pdw.md)
54-
-->
55-
8+
ms.custom: na
9+
ms.date: 01/13/2017
10+
ms.reviewer: na
11+
ms.suite: na
12+
ms.tgt_pltfrm: na
13+
ms.topic: article
14+
ms.assetid: c71617c0-6689-4f52-81c6-58f4cf7c7377
15+
caps.latest.revision: 8
16+
17+
ms.workload: "On Demand"
18+
---
19+
# master Database
20+
The SQL Server PDW master database stores appliance-level login information and the database catalog. It is a SQL Server master database that resides on the Control node. As such, it provides similar functionality to SQL Server PDW as master provides to SQL Server.
21+
22+
For more information about system databases, see [System Databases](system-databases.md).
23+
24+
## Limitations and Restrictions
25+
The following list describes the operations you cannot perform on the SQL Server PDW master database.
26+
27+
You *cannot:*
28+
29+
- Perform a differential backup of master.
30+
31+
- Create user objects in master.
32+
33+
- Change the collation of master.
34+
35+
- Change the owner of master.
36+
37+
- Drop or rename master.
38+
39+
- Modify permissions to master.
40+
41+
- Execute **DBCC SHRINKLOG**.
42+
43+
## Related Tasks
44+
45+
|Task|Description|
46+
|--------|---------------|
47+
|Create a full backup of master.|Example:<br /><br />`BACKUP DATABASE master TO backup_directory;`<br /><br />For more information, see [BACKUP DATABASE](../t-sql/statements/backup-database-parallel-data-warehouse.md).|
48+
|Restore the master database|To restore the master database, use the [Restore the Master Database](restore-the-master-database.md) page in the Configuration Manager tool.|
49+
|View database catalog information.|`SELECT * FROM master.sys.databases;`|
50+
|View system-wide login and permission information.|`SELECT * FROM master.sys.server_permissions;`<br /><br />`SELECT * FROM master.sys.server_principals;`<br /><br />`SELECT * FROM master.sys.sql_logins;`|
51+
52+
<!-- MISSING LINKS
53+
## See Also
54+
[Common Metadata Query Examples &#40;SQL Server PDW&#41;](../sqlpdw/common-metadata-query-examples-sql-server-pdw.md)
55+
-->
56+

docs/analytics-platform-system/system-databases.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
title: "System Databases (SQL Server PDW)"
2+
title: "System Databases (SQL Server PDW)"
3+
34
author: "barbkess"
45
ms.author: "barbkess"
56
manager: "jhubbard"
@@ -14,6 +15,7 @@ ms.topic: article
1415
ms.assetid: f03e26be-1b16-4526-b4b8-1f17b91d3635
1516
caps.latest.revision: 9
1617

18+
ms.workload: "On Demand"
1719
---
1820
# System Databases
1921
System databases are databases that SQL Server PDW uses to manage users, databases, and temporary data. SQL Server PDW includes the following system databases: master, and tempdb.
Lines changed: 92 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,98 @@
1-
---
1+
---
22
title: "tempdb Database (SQL Server PDW)"
33
author: "barbkess"
44
ms.author: "barbkess"
55
manager: "jhubbard"
66
ms.prod: "analytics-platform-system"
77
ms.technology: "mpp-data-warehouse"
8-
ms.custom: na
9-
ms.date: 01/13/2017
10-
ms.reviewer: na
11-
ms.suite: na
12-
ms.tgt_pltfrm: na
13-
ms.topic: article
14-
ms.assetid: 5840033d-2dc6-4576-8a5f-067e2a58b170
15-
caps.latest.revision: 22
16-
17-
---
18-
# tempdb Database
19-
**tempdb** is a SQL Server PDW system database that stores local temporary tables for user databases. Temporary tables are often used to improve query performance. For example, you can use a temporary table to modularize a script, and reuse computed data.
20-
21-
For more information about system databases, see [System Databases](system-databases.md).
22-
23-
## <a name="Basics"></a>Key Terms and Concepts
24-
*local temporary table*
25-
A *local temporary table* uses the # prefix before the table name and is a temporary table created by a local user session. Each session can only access the data in local temporary tables for its own session.
26-
27-
Each session can view the metadata for local temporary tables in all sessions. For example, all sessions can view the metadata for all local temporary tables with the `SELECT * FROM tempdb.sys.tables` query.
28-
29-
global temporary table
30-
*Global temporary tables*, supported in SQL Server with the ## syntax, are not supported in this release of SQL Server PDW.
31-
32-
pdwtempdb
33-
**pdwtempdb** is the database that stores local temporary tables.
34-
35-
PDW does not implement temporary tables by using the SQL Server**tempdb** database. Instead, PDW stores them in a database called pdwtempdb. This database exists on each Compute node and is invisible to the user through the PDW interfaces. In the Admin Console, on the storage page, you will see these accounted for in a PDW system database called **tempdb-sql**.
36-
37-
tempdb
38-
**tempdb** is the SQL Server tempdb database. It uses minimal logging. SQL Server uses tempdb on the Compute nodes to store temporary tables that it needs in the course of performing SQL Server operations.
39-
40-
SQL Server PDW drops tables from **tempdb** when:
41-
42-
- The DROP TABLE statement is executed.
43-
44-
- A session is disconnected. Only temporary tables for the session are dropped.
45-
46-
- The appliance is shutdown.
47-
48-
- The Control node has a cluster failover.
49-
50-
## General Remarks
51-
SQL Server PDW performs the same operations on temporary tables and permanent tables unless explicitly stated otherwise. For example, the data in local temporary tables, just like permanent tables, is either distributed or replicated across the Compute nodes.
52-
53-
## <a name="LimitationsRestrictions"></a>Limitations and Restrictions
54-
Limitations and restrictions on the SQL Server PDW**tempdb** database. You *cannot:*
55-
56-
- Create a global temporary table that begins with ##.
57-
58-
- Perform a backup or restore of **tempdb**.
59-
60-
- Modify permissions to **tempdb** with the **GRANT**, **DENY**, or **REVOKE** statements.
61-
62-
- Execute **DBCC SHRINKLOG** for **tempdb**tempdb.
63-
64-
- Perform DDL operations on **tempdb**. There are a couple exceptions to this. For details, see the following list of limitations and restrictions on local temporary tables.
65-
66-
Limitations and restrictions on local temporary tables. You *cannot:*
67-
68-
- Rename a temporary table
69-
70-
- Create partitions, views, or non-clustered indexes on a temporary table. **ALTER INDEX** can be used to rebuild a clustered index for a table created with one.
71-
72-
- Modify permissions to temporary tables with the GRANT, DENY, or REVOKE statements.
73-
74-
- Run database console commands on temporary tables.
75-
76-
- Use the same name for two or more temporary tables within the same batch. If more than one local temporary table is used within a batch, each must have a unique name. If multiple sessions are running the same batch and creating the same local temporary table, SQL Server PDW internally appends a numeric suffix to the local temporary table name to maintain a unique name for each local temporary table.
77-
78-
> [!NOTE]
79-
> You *can* create and update statistics on a temporary table.**ALTER INDEX** can be used to rebuild a clustered index.
80-
81-
## Permissions
82-
Any user can create temporary objects in tempdb. Users can only access their own objects, unless they receive additional permissions. It is possible to revoke the connect permission to tempdb to prevent a user from using tempdb, but this is not recommended as some routine operations require the use of tempdb.
83-
84-
## <a name="RelatedTasks"></a>Related Tasks
85-
86-
|Tasks|Description|
87-
|---------|---------------|
88-
|Create a table in **tempdb**.|You can create a user temporary table with the CREATE TABLE and CREATE TABLE AS SELECT statements. For more information, see [CREATE TABLE](../t-sql/statements/create-table-azure-sql-data-warehouse.md) and [CREATE TABLE AS SELECT](../t-sql/statements/create-table-as-select-azure-sql-data-warehouse.md).|
89-
|View a list of existing tables in **tempdb**.|`SELECT * FROM tempdb.sys.tables;`|
90-
|View a list of existing columns in **tempdb**.|`SELECT * FROM tempdb.sys.columns;`|
91-
|View a list of existing objects in **tempdb**.|`SELECT * FROM tempdb.sys.objects;`|
92-
93-
<!-- MISSING LINKS
94-
## See Also
95-
[Common Metadata Query Examples &#40;SQL Server PDW&#41;](../sqlpdw/common-metadata-query-examples-sql-server-pdw.md)
96-
-->
97-
8+
ms.custom: na
9+
ms.date: 01/13/2017
10+
ms.reviewer: na
11+
ms.suite: na
12+
ms.tgt_pltfrm: na
13+
ms.topic: article
14+
ms.assetid: 5840033d-2dc6-4576-8a5f-067e2a58b170
15+
caps.latest.revision: 22
16+
17+
ms.workload: "On Demand"
18+
---
19+
# tempdb Database
20+
**tempdb** is a SQL Server PDW system database that stores local temporary tables for user databases. Temporary tables are often used to improve query performance. For example, you can use a temporary table to modularize a script, and reuse computed data.
21+
22+
For more information about system databases, see [System Databases](system-databases.md).
23+
24+
## <a name="Basics"></a>Key Terms and Concepts
25+
*local temporary table*
26+
A *local temporary table* uses the # prefix before the table name and is a temporary table created by a local user session. Each session can only access the data in local temporary tables for its own session.
27+
28+
Each session can view the metadata for local temporary tables in all sessions. For example, all sessions can view the metadata for all local temporary tables with the `SELECT * FROM tempdb.sys.tables` query.
29+
30+
global temporary table
31+
*Global temporary tables*, supported in SQL Server with the ## syntax, are not supported in this release of SQL Server PDW.
32+
33+
pdwtempdb
34+
**pdwtempdb** is the database that stores local temporary tables.
35+
36+
PDW does not implement temporary tables by using the SQL Server**tempdb** database. Instead, PDW stores them in a database called pdwtempdb. This database exists on each Compute node and is invisible to the user through the PDW interfaces. In the Admin Console, on the storage page, you will see these accounted for in a PDW system database called **tempdb-sql**.
37+
38+
tempdb
39+
**tempdb** is the SQL Server tempdb database. It uses minimal logging. SQL Server uses tempdb on the Compute nodes to store temporary tables that it needs in the course of performing SQL Server operations.
40+
41+
SQL Server PDW drops tables from **tempdb** when:
42+
43+
- The DROP TABLE statement is executed.
44+
45+
- A session is disconnected. Only temporary tables for the session are dropped.
46+
47+
- The appliance is shutdown.
48+
49+
- The Control node has a cluster failover.
50+
51+
## General Remarks
52+
SQL Server PDW performs the same operations on temporary tables and permanent tables unless explicitly stated otherwise. For example, the data in local temporary tables, just like permanent tables, is either distributed or replicated across the Compute nodes.
53+
54+
## <a name="LimitationsRestrictions"></a>Limitations and Restrictions
55+
Limitations and restrictions on the SQL Server PDW**tempdb** database. You *cannot:*
56+
57+
- Create a global temporary table that begins with ##.
58+
59+
- Perform a backup or restore of **tempdb**.
60+
61+
- Modify permissions to **tempdb** with the **GRANT**, **DENY**, or **REVOKE** statements.
62+
63+
- Execute **DBCC SHRINKLOG** for **tempdb**tempdb.
64+
65+
- Perform DDL operations on **tempdb**. There are a couple exceptions to this. For details, see the following list of limitations and restrictions on local temporary tables.
66+
67+
Limitations and restrictions on local temporary tables. You *cannot:*
68+
69+
- Rename a temporary table
70+
71+
- Create partitions, views, or non-clustered indexes on a temporary table. **ALTER INDEX** can be used to rebuild a clustered index for a table created with one.
72+
73+
- Modify permissions to temporary tables with the GRANT, DENY, or REVOKE statements.
74+
75+
- Run database console commands on temporary tables.
76+
77+
- Use the same name for two or more temporary tables within the same batch. If more than one local temporary table is used within a batch, each must have a unique name. If multiple sessions are running the same batch and creating the same local temporary table, SQL Server PDW internally appends a numeric suffix to the local temporary table name to maintain a unique name for each local temporary table.
78+
79+
> [!NOTE]
80+
> You *can* create and update statistics on a temporary table.**ALTER INDEX** can be used to rebuild a clustered index.
81+
82+
## Permissions
83+
Any user can create temporary objects in tempdb. Users can only access their own objects, unless they receive additional permissions. It is possible to revoke the connect permission to tempdb to prevent a user from using tempdb, but this is not recommended as some routine operations require the use of tempdb.
84+
85+
## <a name="RelatedTasks"></a>Related Tasks
86+
87+
|Tasks|Description|
88+
|---------|---------------|
89+
|Create a table in **tempdb**.|You can create a user temporary table with the CREATE TABLE and CREATE TABLE AS SELECT statements. For more information, see [CREATE TABLE](../t-sql/statements/create-table-azure-sql-data-warehouse.md) and [CREATE TABLE AS SELECT](../t-sql/statements/create-table-as-select-azure-sql-data-warehouse.md).|
90+
|View a list of existing tables in **tempdb**.|`SELECT * FROM tempdb.sys.tables;`|
91+
|View a list of existing columns in **tempdb**.|`SELECT * FROM tempdb.sys.columns;`|
92+
|View a list of existing objects in **tempdb**.|`SELECT * FROM tempdb.sys.objects;`|
93+
94+
<!-- MISSING LINKS
95+
## See Also
96+
[Common Metadata Query Examples &#40;SQL Server PDW&#41;](../sqlpdw/common-metadata-query-examples-sql-server-pdw.md)
97+
-->
98+

docs/database-engine/configure-windows/database-engine-service-startup-options.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ ms.workload: "On Demand"
2929

3030
> [!WARNING]
3131
> Improper use of startup options can affect server performance and can prevent [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] from starting.
32+
>
33+
> Start SQL Server on Linux with the "mssql" user to prevent future startup issues. Example "sudo -u mssql /opt/mssql/bin/sqlservr [STARTUP OPTIONS]"
3234
3335
## About Startup Options
3436
When you install [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], Setup writes a set of default startup options in the [!INCLUDE[msCoName](../../includes/msconame-md.md)] Windows registry. You can use these startup options to specify an alternate master database file, master database log file, or error log file. If the [!INCLUDE[ssDE](../../includes/ssde-md.md)] cannot locate the necessary files, [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] will not start.

0 commit comments

Comments
 (0)