Skip to content

Commit 69bb7f4

Browse files
authored
Update README.md
Readme updated. Added new utility funtion to get an array of byte from a string value.
1 parent 224f564 commit 69bb7f4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ There are two Utilities methods or procedures;
2828

2929
1. **GetTimestamp**
3030
1. **Create_HMACSHA256(SqlString value, SqlString Key)**
31+
1. **fn_GetBytes(SqlString value)**
3132

3233
It include another one, that is basically an example of how to implement a customized method that return a result set based in a Data transfer object (DTO).
3334

@@ -147,6 +148,15 @@ RETURNS NVARCHAR (MAX)
147148
AS
148149
EXTERNAL NAME [API_Consumer].[UserDefinedFunctions].[GetTimestamp]
149150
151+
GO
152+
PRINT N'Creating [dbo].[fn_GetBytes]...';
153+
GO
154+
CREATE FUNCTION [dbo].fn_GetBytes
155+
(@value NVARCHAR (MAX) NULL )
156+
RETURNS NVARCHAR (MAX)
157+
AS
158+
EXTERNAL NAME [API_Consumer].[UserDefinedFunctions].fn_GetBytes
159+
GO
150160
```
151161

152162
```

0 commit comments

Comments
 (0)