Skip to content

Commit 3e1a1f3

Browse files
authored
Merge pull request #5107 from icoric/patch-23
Updated capitalization
2 parents 50f8d99 + 085c549 commit 3e1a1f3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ NCHAR ( integer_expression )
4848

4949
```sql
5050
CREATE DATABASE test COLLATE Finnish_Swedish_100_CS_AS_SC;
51-
DECLARE @d nvarchar(10) = N'𣅿';
51+
DECLARE @d NVARCHAR(10) = N'𣅿';
5252
-- Old style method.
5353
SELECT NCHAR(0xD84C) + NCHAR(0xDD7F);
5454

@@ -65,7 +65,7 @@ SELECT NCHAR(UNICODE(@d));
6565
The following example uses the `UNICODE` and `NCHAR` functions to print the `UNICODE` value and the `NCHAR` (Unicode character) of the second character of the `København` character string, and to print the actual second character, `ø`.
6666

6767
```sql
68-
DECLARE @nstring nchar(8);
68+
DECLARE @nstring NCHAR(8);
6969
SET @nstring = N'København';
7070
SELECT UNICODE(SUBSTRING(@nstring, 2, 1)),
7171
NCHAR(UNICODE(SUBSTRING(@nstring, 2, 1)));
@@ -87,7 +87,7 @@ GO
8787
-- The @position variable holds the position of the character currently
8888
-- being processed. The @nstring variable is the Unicode character
8989
-- string to process.
90-
DECLARE @position int, @nstring nchar(9);
90+
DECLARE @position INT, @nstring NCHAR(9);
9191
-- Initialize the current position variable to the first character in
9292
-- the string.
9393
SET @position = 1;

0 commit comments

Comments
 (0)