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

Commit decf4cd

Browse files
authored
Merge pull request #3667 from MicrosoftDocs/FromPublicRepo
Confirm merge from FromPublicRepo to master to sync with https://github.com/MicrosoftDocs/sql-docs (branch live)
2 parents aa61512 + 3753d1a commit decf4cd

3 files changed

Lines changed: 36 additions & 3 deletions

File tree

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/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.

docs/linux/sql-server-linux-troubleshooting-guide.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,37 @@ For SQL dumps
115115
```bash
116116
sudo ls /var/opt/mssql/log | grep .mdmp
117117
```
118+
119+
## Start SQL Server in Minimal Configuration or in Single User Mode
120+
121+
### Start SQL Server in Minimal Configuration Mode
122+
This is useful if the setting of a configuration value (for example, over-committing memory) has prevented the server from starting.
123+
124+
```bash
125+
sudo -u mssql /opt/mssql/bin/sqlservr -f
126+
```
127+
128+
### Start SQL Server in Single User Mode
129+
Under certain circumstances, you may have to start an instance of SQL Server in single-user mode by using the startup option -m. For example, you may want to change server configuration options or recover a damaged master database or other system database. For example, you may want to change server configuration options or recover a damaged master database or other system database
130+
131+
Start SQL Server in Single User Mode
132+
```bash
133+
sudo -u mssql /opt/mssql/bin/sqlservr -m
134+
```
135+
136+
Start SQL Server in Single User Mode with SQLCMD
137+
```bash
138+
sudo -u mssql /opt/mssql/bin/sqlservr -m SQLCMD
139+
```
140+
141+
> [!WARNING]
142+
> Start SQL Server on Linux with the "mssql" user to prevent future startup issues. Example "sudo -u mssql /opt/mssql/bin/sqlservr [STARTUP OPTIONS]"
143+
144+
If you have accidentally started SQL Server with another user, you will need to change ownership of SQL Server database files back to the 'mssql' user prior to starting SQL Server with systemd. For example, to change ownership of all database files under /var/opt/mssql to the 'mssql' user, run the following command
145+
146+
```bash
147+
chown -R mssql:mssql /var/opt/mssql/
148+
```
118149
119150
## Common issues
120151
@@ -168,4 +199,4 @@ Support is available through the community and monitored by the engineering team
168199
- [Stack Overflow](http://stackoverflow.com/questions/tagged/sql-server): Ask development questions
169200
- [MSDN Forums](https://social.msdn.microsoft.com/Forums/en-US/home?category=sqlserver): Ask technical questions
170201
- [Microsoft Connect](https://connect.microsoft.com/SQLServer/Feedback): Report bugs and request feature
171-
- [Reddit](https://www.reddit.com/r/SQLServer/): Discuss SQL Server
202+
- [Reddit](https://www.reddit.com/r/SQLServer/): Discuss SQL Server

0 commit comments

Comments
 (0)