Skip to content

Commit becb805

Browse files
authored
Merge pull request #13184 from MicrosoftDocs/FromPublicRepo
Confirm merge from FromPublicRepo to master to sync with https://github.com/MicrosoftDocs/sql-docs (branch live)
2 parents 07fec6e + 5a09360 commit becb805

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

docs/t-sql/data-types/rowversion-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ CREATE TABLE ExampleTable2 (PriKey int PRIMARY KEY, VerCol rowversion) ;
5959
6060
A nonnullable **rowversion** column is semantically equivalent to a **binary(8)** column. A nullable **rowversion** column is semantically equivalent to a **varbinary(8)** column.
6161

62-
You can use the **rowversion** column of a row to easily determine whether the row has had an update statement ran against it since the last time it was read. If an update statement is ran against the row, the rowversion value is updated. If no update statements are ran against the row, the rowversion value is the same as when it was previously read. To return the current rowversion value for a database, use [@@DBTS](../../t-sql/functions/dbts-transact-sql.md).
62+
You can use the **rowversion** column of a row to easily determine whether an update statement has been run against the row since the last time it was read. If an update statement is run against the row, the rowversion value is updated. If no update statements are run against the row, the rowversion value is the same as when it was previously read. To return the current rowversion value for a database, use [@@DBTS](../../t-sql/functions/dbts-transact-sql.md).
6363

6464
You can add a **rowversion** column to a table to help maintain the integrity of the database when multiple users are updating rows at the same time. You may also want to know how many rows and which rows were updated without re-querying the table.
6565

docs/t-sql/functions/datename-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ This example returns the date parts for the specified date. Substitute a *datepa
150150
|**millisecond, ms**|123|
151151
|**microsecond, mcs**|123456|
152152
|**nanosecond, ns**|123456700|
153-
|**TZoffset, tz**|310|
153+
|**TZoffset, tz**|+05:10|
154154
|**ISO_WEEK, ISOWK, ISOWW**|44|
155155

156156
[!INCLUDE[ssSDWfull](../../includes/sssdwfull-md.md)] and [!INCLUDE[ssPDW](../../includes/sspdw-md.md)]
@@ -178,7 +178,7 @@ SELECT DATENAME(datepart,'2007-10-30 12:15:32.1234567 +05:10');
178178
|**millisecond, ms**|123|
179179
|**microsecond, mcs**|123456|
180180
|**nanosecond, ns**|123456700|
181-
|**TZoffset, tz**|310|
181+
|**TZoffset, tz**|+05:10|
182182
|**ISO_WEEK, ISOWK, ISOWW**|44|
183183

184184
## See also

docs/t-sql/functions/datepart-transact-sql.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,16 @@ This table lists all *datepart* arguments, with corresponding return values, for
100100
|**month, mm, m**|10|
101101
|**dayofyear, dy, y**|303|
102102
|**day, dd, d**|30|
103-
|**week, wk, ww**|45|
104-
|**weekday, dw**|1|
103+
|**week, wk, ww**|44|
104+
|**weekday, dw**|3|
105105
|**hour, hh**|12|
106106
|**minute, n**|15|
107107
|**second, ss, s**|32|
108108
|**millisecond, ms**|123|
109109
|**microsecond, mcs**|123456|
110110
|**nanosecond, ns**|123456700|
111111
|**TZoffset, tz**|310|
112+
|**ISO_WEEK, ISOWK, ISOWW**|44|
112113

113114
## Week and weekday datepart arguments
114115
For a **week** (**wk**, **ww**) or **weekday** (**dw**) *datepart*, the `DATEPART` return value depends on the value set by [SET DATEFIRST](../../t-sql/statements/set-datefirst-transact-sql.md).

docs/t-sql/statements/create-availability-group-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ CREATE AVAILABILITY GROUP group_name
215215
Is the network name that is used to access a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] failover cluster. Use this if the server instance participates as a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] failover partner. Executing SELECT [@@SERVERNAME](../../t-sql/functions/servername-transact-sql.md) on an FCI server instance returns its entire '*FCI_network_name*[\\*instance_name*]' string (which is the full replica name).
216216

217217
*instance_name*
218-
Is the name of an instance of a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] that is hosted by *system_name* or *FCI_network_name* and that has HADR service is enabled. For a default server instance, *instance_name* is optional. The instance name is case insensitive. On a stand-alone server instance, this value name is the same as the value returned by executing SELECT [@@SERVERNAME](../../t-sql/functions/servername-transact-sql.md).
218+
Is the name of an instance of a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] that is hosted by *system_name* or *FCI_network_name* and that has HADR service is enabled. For a default server instance, *instance_name* is optional. The instance name is case insensitive. On a named instance, this value name is the same as the value returned by executing `select ServerProperty(N'InstanceName');`.
219219

220220
\
221221
Is a separator used only when specifying *instance_name*, in order to separate it from *system_name* or *FCI_network_name*.

0 commit comments

Comments
 (0)