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
{{ message }}
Repository navigation
Commit f95270f
Browse filesBrowse the repository at this point in the historyBrowse files
# SQL Server include files for versioning and applies-to
16
16
17
-
References in the documentation can be easily modified without changing the actual text of individual articles by using include files in Markdown. There are three types of include files in the SQL content world: SQL version, applies-to, and referential text. **SQL version includes** are used to indicate the version of SQL being discussed, such as SQL Server 2016 or 2017. The **applies-to includes** indicate what SQL products and services the document applies to, such as SQL Server on Linux or Azure SQL Database. **Referential text includes** don't fall in the other two categories, such as the "Get Help" include, a list of links that customers can use to get help with SQL.
17
+
References in the documentation can be easily modified without changing the actual text of individual articles by using include files in Markdown. There are three types of include files in the SQL content world: SQL version, applies-to, and referential text. **SQL Server version**include files are used to indicate the version of SQL being discussed, such as SQL Server 2016 or 2017. The **applies-to**include files indicate what SQL products and services the document applies to, such as SQL Server on Linux or Azure SQL Database. **Referential text**include files don't fall in the other two categories, such as the "Get Help" include, a list of links that customers can use to get help with SQL Server.
18
18
19
-
This article is meant to be used as a reference point for just the first two types of includes. You can browse the complete list of include files in the [sql-docs repository](https://github.com/MicrosoftDocs/sql-docs/tree/live/docs/includes).
19
+
This article is meant to be used as a reference point for just the first two types of include files. You can browse the complete list of include files in the [sql-docs repository](https://github.com/MicrosoftDocs/sql-docs/tree/live/docs/includes).
20
20
21
-
## SQL Server version includes
21
+
## SQL Server version include files
22
22
23
23
SQL Content writers frequently need to include the name of the product and version of SQL Server. This way, if something changes in the name, the include file is updated instead of manually updating the value in every single article. These include files are used as placeholders for product names but have not been consistently used in all SQL documentation. SQL Server vNext refers to a future release of SQL that does not yet have a version number and is the exception to this.
24
24
@@ -36,9 +36,9 @@ SQL Content writers frequently need to include the name of the product and versi
36
36
| SQL vNext | sssqlv15-md.md |`[!INCLUDE[sssqlv15-md](../includes/sssqlv15-md.md)]`| SQL Server vNext |
37
37
| | | | |
38
38
39
-
## SQL Server (non-version-specific)
39
+
## SQL Server Applies-to (non-version-specific)
40
40
41
-
These applies-to includes omit the version of SQL Server.
41
+
These applies-to include files omit the version of SQL Server.
Copy file name to clipboardExpand all lines: docs/ssms/tutorials/connect-query-sql-server.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,14 +61,14 @@ If you don't have access to a SQL Server instance, select your platform from the
61
61
### Examples of successful connections
62
62
To verify that your SQL Server connection succeeded, expand and explore the objects within **Object Explorer**. These objects will be different depending on the type of server you're connected to.
63
63
64
-
- Connecting to an on-prem SQL server - in this case NODE5\SQL2016ST:
65
-

64
+
- Connecting to an on-premises SQL server - in this case NODE5\SQL2016ST:
65
+

66
66
67
67
- Connecting to SQL Azure DB - in this case msftestserver.database.windows.net:
68
68

69
69
70
70
>[!NOTE]
71
-
> In this tutorial, you previously used *Windows Authentication* to connect to your on-prem SQL server, but this method is not supported for SQL Azure DB. As such, this image shows using SQL Authentication to connect to the SQL Azure DB. For more information, see [SQL on-prem authentication](../../relational-databases/security/choose-an-authentication-mode.md) and [SQL Azure authentication](https://docs.microsoft.com/azure/sql-database/sql-database-security-overview#control-access).
71
+
> In this tutorial, you previously used *Windows Authentication* to connect to your on-premises SQL server, but this method is not supported for SQL Azure DB. As such, this image shows using SQL Authentication to connect to the SQL Azure DB. For more information, see [SQL on-premises authentication](../../relational-databases/security/choose-an-authentication-mode.md) and [SQL Azure authentication](https://docs.microsoft.com/azure/sql-database/sql-database-security-overview#control-access).
72
72
73
73
## Create a database
74
74
Create a database named TutorialDB by doing the following:
Copy file name to clipboardExpand all lines: docs/t-sql/functions/string-split-transact-sql.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,9 @@ FROM Product
120
120
|2|LL Headset|bike|
121
121
|3|HL Mountain Frame|bike|
122
122
|3|HL Mountain Frame|mountain|
123
+
124
+
>[!NOTE]
125
+
> The order of the output may vary as the order is _not_ guaranteed to match the order of the substrings in the input string.
123
126
124
127
### C. Aggregation by values
125
128
Users must create a report that shows the number of products per each tag, ordered by number of products, and to filter only the tags with more than two products.
Copy file name to clipboardExpand all lines: docs/t-sql/functions/translate-transact-sql.md
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,18 +46,8 @@ Returns a character expression of the same data type as `inputString` where char
46
46
47
47
`TRANSLATE` will return an error if *characters* and *translations* expressions have different lengths. `TRANSLATE` will return NULL if any of the arguements are NULL.
48
48
49
-
The behavior of the `TRANSLATE` function is similar to using multiple [REPLACE](../../t-sql/functions/replace-transact-sql.md) functions. `TRANSLATE` does not, however, replace a character more than once. This is disimilar to multiple `REPLACE` functions, as each use would replace all relevant characters. For example:
49
+
The behavior of the `TRANSLATE` function is similar to using multiple [REPLACE](../../t-sql/functions/replace-transact-sql.md) functions. `TRANSLATE` does not, however, replace a character more than once. This is dissimilar to multiple `REPLACE` functions, as each use would replace all relevant characters.
50
50
51
-
```sql
52
-
SELECTTRANSLATE('abcdef','abc','bcd') AS Translated,
53
-
REPLACE(REPLACE(REPLACE('abcdef','a','b'),'b','c'),'c','d') AS Replaced;
54
-
```
55
-
56
-
The results are:
57
-
58
-
| Translated | Replaced |
59
-
| ---------|--------- |
60
-
| bcddef | ddddef |
61
51
62
52
`TRANSLATE` is always SC collation aware.
63
53
@@ -117,6 +107,20 @@ SELECT TRANSLATE('[137.4, 72.3]' , '[,]', '( )') AS Point,
117
107
(137.4 72.3) |[137.4,72.3] |
118
108
119
109
110
+
### C. Use the TRANSLATE function
111
+
112
+
```sql
113
+
SELECTTRANSLATE('abcdef','abc','bcd') AS Translated,
114
+
REPLACE(REPLACE(REPLACE('abcdef','a','b'),'b','c'),'c','d') AS Replaced;
0 commit comments