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/advanced-analytics/install/sql-machine-learning-services-windows-install.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -290,7 +290,7 @@ To install and manage R packages, you can set up user groups to share packages o
290
290
291
291
R developers can get started with some simple examples, and learn the basics of how R works with SQL Server. For your next step, see the following links:
292
292
293
-
+ [Tutorial: Run R in T-SQL](../tutorials/rtsql-using-r-code-in-transact-sql-quickstart.md)
293
+
+ [Tutorial: Run R in T-SQL](../tutorials/quickstart-r-create-script.md)
294
294
+ [Tutorial: In-database analytics for R developers](../tutorials/sqldev-in-database-r-for-sql-developers.md)
295
295
296
296
Python developers can learn how to use Python with SQL Server by following these tutorials:
Copy file name to clipboardExpand all lines: docs/advanced-analytics/install/sql-machine-learning-standalone-windows-install.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,7 +213,7 @@ A development IDE is not installed as part of setup. For more information about
213
213
214
214
R developers can get started with some simple examples, and learn the basics of how R works with SQL Server. For your next step, see the following links:
215
215
216
-
+ [Tutorial: Run R in T-SQL](../tutorials/rtsql-using-r-code-in-transact-sql-quickstart.md)
216
+
+ [Tutorial: Run R in T-SQL](../tutorials/quickstart-r-create-script.md)
217
217
+ [Tutorial: In-database analytics for R developers](../tutorials/sqldev-in-database-r-for-sql-developers.md)
Copy file name to clipboardExpand all lines: docs/advanced-analytics/install/sql-ml-component-commandline-install.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,7 +198,7 @@ To check the installation status of the instance and fix common issues, try thes
198
198
199
199
R developers can get started with some simple examples, and learn the basics of how R works with SQL Server. For your next step, see the following links:
200
200
201
-
+[Tutorial: Run R in T-SQL](../tutorials/rtsql-using-r-code-in-transact-sql-quickstart.md)
201
+
+[Tutorial: Run R in T-SQL](../tutorials/quickstart-r-create-script.md)
202
202
+[Tutorial: In-database analytics for R developers](../tutorials/sqldev-in-database-r-for-sql-developers.md)
203
203
204
204
Python developers can learn how to use Python with SQL Server by following these tutorials:
Copy file name to clipboardExpand all lines: docs/advanced-analytics/install/sql-r-services-windows-install.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -252,7 +252,7 @@ The process for installing and managing R packages is different in SQL Server 20
252
252
253
253
R developers can get started with some simple examples, and learn the basics of how R works with SQL Server. For your next step, see the following links:
254
254
255
-
+ [Tutorial: Run R in T-SQL](../tutorials/rtsql-using-r-code-in-transact-sql-quickstart.md)
255
+
+ [Tutorial: Run R in T-SQL](../tutorials/quickstart-r-create-script.md)
256
256
+ [Tutorial: In-database analytics for R developers](../tutorials/sqldev-in-database-r-for-sql-developers.md)
257
257
258
258
To view examples of machine learning that are based onreal-world scenarios, see [Machine learning tutorials](../tutorials/machine-learning-services-tutorials.md).
Copy file name to clipboardExpand all lines: docs/advanced-analytics/r/how-to-do-realtime-scoring.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ To use a model with either of the fast scoring options, save the model using a s
79
79
80
80
**Using SQL**
81
81
82
-
From SQL code, you can train the model using [sp_execute_external_script](https://docs.microsoft.com//sql/relational-databases/system-stored-procedures/sp-execute-external-script-transact-sql), and directly insert the trained models into a table, in a column of type **varbinary(max)**. For a simple example, see [Create a preditive model in R](../tutorials/rtsql-create-a-predictive-model-r.md)
82
+
From SQL code, you can train the model using [sp_execute_external_script](https://docs.microsoft.com//sql/relational-databases/system-stored-procedures/sp-execute-external-script-transact-sql), and directly insert the trained models into a table, in a column of type **varbinary(max)**. For a simple example, see [Create a preditive model in R](../tutorials/quickstart-r-train-score-model.md)
Copy file name to clipboardExpand all lines: docs/advanced-analytics/r/r-and-data-optimization-r-services.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ There are two ways to achieve parallelization with R in SQL Server:
76
76
77
77
If the R script can be parallelized, and if the SQL query can be parallelized, then the database engine creates multiple parallel processes. The maximum number of processes that can be created is equal to the **max degree of parallelism** (MAXDOP) setting for the instance. All processes then run the same script, but receive only a portion of the data.
78
78
79
-
Thus, this method is not useful with scripts that must see all the data, such as when training a model. However, it is useful when performing tasks such as batch prediction in parallel. For more information on using parallelism with `sp_execute_external_script`, see the **Advanced tips: parallel processing** section of [Using R Code in Transact-SQL](../tutorials/rtsql-using-r-code-in-transact-sql-quickstart.md).
79
+
Thus, this method is not useful with scripts that must see all the data, such as when training a model. However, it is useful when performing tasks such as batch prediction in parallel. For more information on using parallelism with `sp_execute_external_script`, see the **Advanced tips: parallel processing** section of [Using R Code in Transact-SQL](../tutorials/quickstart-r-create-script.md).
80
80
81
81
-**Use numTasks =1.** When using **rx** functions in a SQL Server compute context, set the value of the _numTasks_ parameter to the number of processes that you would like to create. The number of processes created can never be more than **MAXDOP**; however, the actual number of processes created is determined by the database engine and may be less than you requested.
Copy file name to clipboardExpand all lines: docs/linux/sql-server-linux-setup-machine-learning.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -532,7 +532,7 @@ There is parity between Linux and Windows for [Resource governance](../t-sql/sta
532
532
533
533
R developers can get started with some simple examples, and learn the basics of how R works with SQL Server. For your next step, see the following links:
534
534
535
-
+[Tutorial: Run R in T-SQL](../advanced-analytics/tutorials/rtsql-using-r-code-in-transact-sql-quickstart.md)
535
+
+[Tutorial: Run R in T-SQL](../advanced-analytics/tutorials/quickstart-r-create-script.md)
536
536
+[Tutorial: In-database analytics for R developers](../advanced-analytics/tutorials/sqldev-in-database-r-for-sql-developers.md)
537
537
538
538
Python developers can learn how to use Python with SQL Server by following these tutorials:
The database object name is referred to as its identifier. Everything in [!INCLUDE[msCoName](../../includes/msconame-md.md)][!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] can have an identifier. Servers, databases, and database objects, such as tables, views, columns, indexes, triggers, procedures, constraints, and rules, can have identifiers. Identifiers are required for most objects, but are optional for some objects such as constraints.
28
-
29
-
An object identifier is created when the object is defined. The identifier is then used to reference the object. For example, the following statement creates a table with the identifier `TableX`, and two columns with the identifiers `KeyCol` and `Description`:
30
-
31
-
```
32
-
CREATE TABLE TableX
33
-
(KeyCol INT PRIMARY KEY, Description nvarchar(80))
34
-
```
35
-
36
-
This table also has an unnamed constraint. The `PRIMARY KEY` constraint has no identifier.
37
-
38
-
The collation of an identifier depends on the level at which it is defined. Identifiers of instance-level objects, such as logins and database names, are assigned the default collation of the instance. Identifiers of objects in a database, such as tables, views, and column names, are assigned the default collation of the database. For example, two tables with names that differ only in case can be created in a database that has case-sensitive collation, but cannot be created in a database that has case-insensitive collation.
39
-
28
+
The database object name is referred to as its identifier. Everything in [!INCLUDE[msCoName](../../includes/msconame-md.md)][!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] can have an identifier. Servers, databases, and database objects, such as tables, views, columns, indexes, triggers, procedures, constraints, and rules, can have identifiers. Identifiers are required for most objects, but are optional for some objects such as constraints.
29
+
30
+
An object identifier is created when the object is defined. The identifier is then used to reference the object. For example, the following statement creates a table with the identifier `TableX`, and two columns with the identifiers `KeyCol` and `Description`:
31
+
32
+
```sql
33
+
CREATETABLETableX
34
+
(KeyCol INTPRIMARY KEY, Description nvarchar(80))
35
+
```
36
+
37
+
This table also has an unnamed constraint. The `PRIMARY KEY` constraint has no identifier.
38
+
39
+
The collation of an identifier depends on the level at which it is defined. Identifiers of instance-level objects, such as logins and database names, are assigned the default collation of the instance. Identifiers of objects in a database, such as tables, views, and column names, are assigned the default collation of the database. For example, two tables with names that differ only in case can be created in a database that has case-sensitive collation, but cannot be created in a database that has case-insensitive collation.
40
+
40
41
> [!NOTE]
41
-
> The names of variables, or the parameters of functions and stored procedures must comply with the rules for [!INCLUDE[tsql](../../includes/tsql-md.md)] identifiers.
42
-
43
-
## Classes of Identifiers
44
-
There are two classes of identifiers:
45
-
46
-
Regular identifiers
47
-
Comply with the rules for the format of identifiers. Regular identifiers are not delimited when they are used in [!INCLUDE[tsql](../../includes/tsql-md.md)] statements.
48
-
49
-
```
50
-
SELECT *
51
-
FROM TableX
52
-
WHERE KeyCol = 124
53
-
```
54
-
55
-
Delimited identifiers
56
-
Are enclosed in double quotation marks (") or brackets ([]). Identifiers that comply with the rules for the format of identifiers might not be delimited. For example:
57
-
58
-
```
59
-
SELECT *
60
-
FROM [TableX] --Delimiter is optional.
61
-
WHERE [KeyCol] = 124 --Delimiter is optional.
62
-
```
63
-
64
-
Identifiers that do not comply with all the rules for identifiers must be delimited in a [!INCLUDE[tsql](../../includes/tsql-md.md)] statement. For example:
65
-
66
-
```
67
-
SELECT *
68
-
FROM [My Table] --Identifier contains a space and uses a reserved keyword.
69
-
WHERE [order] = 10 --Identifier is a reserved keyword.
70
-
```
71
-
72
-
Both regular and delimited identifiers must contain from 1 through 128 characters. For local temporary tables, the identifier can have a maximum of 116 characters.
73
-
74
-
## Rules for Regular Identifiers
75
-
The names of variables, functions, and stored procedures must comply with the following rules for [!INCLUDE[tsql](../../includes/tsql-md.md)] identifiers.
76
-
77
-
1. The first character must be one of the following:
78
-
79
-
- A letter as defined by the Unicode Standard 3.2. The Unicode definition of letters includes Latin characters from a through z, from A through Z, and also letter characters from other languages.
80
-
81
-
- The underscore (_), at sign (@), or number sign (#).
82
-
83
-
Certain symbols at the beginning of an identifier have special meaning in [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. A regular identifier that starts with the at sign always denotes a local variable or parameter and cannot be used as the name of any other type of object. An identifier that starts with a number sign denotes a temporary table or procedure. An identifier that starts with double number signs (##) denotes a global temporary object. Although the number sign or double number sign characters can be used to begin the names of other types of objects, we do not recommend this practice.
84
-
85
-
Some [!INCLUDE[tsql](../../includes/tsql-md.md)] functions have names that start with double at signs (@@). To avoid confusion with these functions, you should not use names that start with @@.
86
-
87
-
2. Subsequent characters can include the following:
88
-
89
-
- Letters as defined in the Unicode Standard 3.2.
90
-
91
-
- Decimal numbers from either Basic Latin or other national scripts.
92
-
93
-
- The at sign, dollar sign ($), number sign, or underscore.
94
-
95
-
3. The identifier must not be a [!INCLUDE[tsql](../../includes/tsql-md.md)] reserved word. [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] reserves both the uppercase and lowercase versions of reserved words. When identifiers are used in [!INCLUDE[tsql](../../includes/tsql-md.md)] statements, the identifiers that do not comply with these rules must be delimited by double quotation marks or brackets. The words that are reserved depend on the database compatibility level. This level can be set by using the [ALTER DATABASE](../../t-sql/statements/alter-database-transact-sql-compatibility-level.md) statement.
96
-
97
-
4. Embedded spaces or special characters are not allowed.
98
-
99
-
5. Supplementary characters are not allowed.
100
-
101
-
When identifiers are used in [!INCLUDE[tsql](../../includes/tsql-md.md)] statements, the identifiers that do not comply with these rules must be delimited by double quotation marks or brackets.
102
-
103
-
> [!NOTE]
104
-
> Some rules for the format of regular identifiers depend on the database compatibility level. This level can be set by using [ALTER DATABASE](../../t-sql/statements/alter-database-transact-sql-compatibility-level.md).
> The names of variables, or the parameters of functions and stored procedures must comply with the rules for [!INCLUDE[tsql](../../includes/tsql-md.md)] identifiers.
43
+
44
+
## Classes of Identifiers
45
+
46
+
There are two classes of identifiers:
47
+
48
+
Regular identifiers
49
+
Comply with the rules for the format of identifiers. Regular identifiers are not delimited when they are used in [!INCLUDE[tsql](../../includes/tsql-md.md)] statements.
50
+
51
+
```sql
52
+
SELECT*
53
+
FROM TableX
54
+
WHERE KeyCol =124
55
+
```
56
+
57
+
Delimited identifiers
58
+
Are enclosed in double quotation marks (") or brackets ([]). Identifiers that comply with the rules for the format of identifiers might not be delimited. For example:
59
+
60
+
```sql
61
+
SELECT*
62
+
FROM [TableX] --Delimiter is optional.
63
+
WHERE [KeyCol] =124--Delimiter is optional.
64
+
```
65
+
66
+
Identifiers that do not comply with all the rules for identifiers must be delimited in a [!INCLUDE[tsql](../../includes/tsql-md.md)] statement. For example:
67
+
68
+
```sql
69
+
SELECT*
70
+
FROM [My Table] --Identifier contains a space and uses a reserved keyword.
71
+
WHERE [order] =10--Identifier is a reserved keyword.
72
+
```
73
+
74
+
Both regular and delimited identifiers must contain from 1 through 128 characters. For local temporary tables, the identifier can have a maximum of 116 characters.
75
+
76
+
## Rules for Regular Identifiers
77
+
The names of variables, functions, and stored procedures must comply with the following rules for [!INCLUDE[tsql](../../includes/tsql-md.md)] identifiers.
78
+
79
+
1. The first character must be one of the following:
80
+
81
+
- A letter as defined by the Unicode Standard 3.2. The Unicode definition of letters includes Latin characters from a through z, from A through Z, and also letter characters from other languages.
82
+
83
+
- The underscore (_), at sign (@), or number sign (#).
84
+
85
+
Certain symbols at the beginning of an identifier have special meaning in [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. A regular identifier that starts with the at sign always denotes a local variable or parameter and cannot be used as the name of any other type of object. An identifier that starts with a number sign denotes a temporary table or procedure. An identifier that starts with double number signs (##) denotes a global temporary object. Although the number sign or double number sign characters can be used to begin the names of other types of objects, we do not recommend this practice.
86
+
87
+
Some [!INCLUDE[tsql](../../includes/tsql-md.md)] functions have names that start with double at signs (@@). To avoid confusion with these functions, you should not use names that start with @@.
88
+
89
+
2. Subsequent characters can include the following:
90
+
91
+
- Letters as defined in the Unicode Standard 3.2.
92
+
93
+
- Decimal numbers from either Basic Latin or other national scripts.
94
+
95
+
- The at sign, dollar sign ($), number sign, or underscore.
96
+
97
+
3. The identifier must not be a [!INCLUDE[tsql](../../includes/tsql-md.md)] reserved word. [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] reserves both the uppercase and lowercase versions of reserved words. When identifiers are used in [!INCLUDE[tsql](../../includes/tsql-md.md)] statements, the identifiers that do not comply with these rules must be delimited by double quotation marks or brackets. The words that are reserved depend on the database compatibility level. This level can be set by using the [ALTER DATABASE](../../t-sql/statements/alter-database-transact-sql-compatibility-level.md) statement.
98
+
99
+
4. Embedded spaces or special characters are not allowed.
100
+
101
+
5. Supplementary characters are not allowed.
102
+
103
+
When identifiers are used in [!INCLUDE[tsql](../../includes/tsql-md.md)] statements, the identifiers that do not comply with these rules must be delimited by double quotation marks or brackets.
104
+
105
+
> [!NOTE]
106
+
> Some rules for the format of regular identifiers depend on the database compatibility level. This level can be set by using [ALTER DATABASE](../../t-sql/statements/alter-database-transact-sql-compatibility-level.md).
0 commit comments