Skip to content

Commit f7d42dc

Browse files
Update README.md
1 parent 04bb43f commit f7d42dc

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

README.md

+16-20
Original file line numberDiff line numberDiff line change
@@ -92,27 +92,11 @@ EXEC Select_Switch 4, 2, 3
9292
Use regular expression to search, replace and split text in SQL
9393

9494
```sql
95-
CREATE FUNCTION [dbo].[fn_Split]
96-
(
97-
@input VARCHAR(MAX) ,
98-
@pattern VARCHAR(8000) = ','
99-
)
100-
RETURNS @split TABLE ( item VARCHAR(8000) )
101-
BEGIN
102-
DECLARE @regex_split SQLNET = SQLNET::New('Regex.Split(input, pattern)')
103-
.ValueString('input', @input)
104-
.Val('pattern', @pattern)
105-
106-
INSERT INTO @split
107-
SELECT CAST(Value_1 AS VARCHAR(8000))
108-
FROM [dbo].[SQLNET_EvalTVF_1](@regex_split)
109-
RETURN
110-
END
111-
112-
GO
95+
DECLARE @s VARCHAR(MAX) = '1, 2, 3; 4; 5'
96+
DECLARE @sqlnet SQLNET = SQLNET::New('Split(input, ",|;")')
11397

114-
-- SPLIT with multiple delimiters (',' and ';')
115-
SELECT * FROM dbo.fn_Split('1, 2, 3; 4; 5', ',|;')
98+
SELECT *
99+
FROM dbo.SQLNET_EvalTVF_1(@sqlnet.ValueString('input', @s))
116100
```
117101

118102
**[Learn more](https://github.com/zzzprojects/Eval-SQL.NET/wiki/SQL-Server-Regex-%7C-Use-regular-expression-to-search,-replace-and-split-text-in-SQL)**
@@ -135,6 +119,18 @@ EXEC dbo.SQLNET_EvalResultSet @sqlnet
135119

136120
**[Learn more](https://github.com/zzzprojects/Eval-SQL.NET/wiki/SQL-Server-File-Operation-%7C-xp_cmdshell-alternative-to-read-and-write-files-in-SQL)**
137121

122+
## Security
123+
You can install Eval SQL.NET with any SQL CLR permissions
124+
- SAFE
125+
- EXTERNAL_ACCESS
126+
- UNSAFE
127+
128+
129+
## Performance
130+
Eval SQL.NET is fast, very fast! The performance is very close to SQL CLR.
131+
132+
You can evaluate over **150,000** expression in a loop under one seconds and over *1,000,000* expression from a table!
133+
138134
## FREE vs PRO
139135

140136
Every month, a **[FREE trial](https://github.com/zzzprojects/Eval-SQL.NET/releases)** of the PRO version is available to let you evaluate all its features without limitations.

0 commit comments

Comments
 (0)