Skip to content

Commit 62e3f37

Browse files
authored
Update sql-server-eval.md
1 parent 5c4e31b commit 62e3f37

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs2/pages/troubleshooting/sql-server-eval.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
How to evaluate an arithmetic expression in SQL Server is a common subject. There are several reasons why an "Eval" function like JavaScript could be useful in SQL such as evaluating custom report fields for a trusted user.
66

7-
Multiple partial solutions exists like using "EXEC(Transact-SQL)" which is limited, cannot be used inside SELECT statement and lead to SQL Injection or using an homemade function which, most of time, fail at supporting simple operator priority and parenthesis.
7+
Multiple partial solutions exist like using "EXEC(Transact-SQL)" which is limited, it cannot be used inside SELECT statement and lead to SQL Injection or using an homemade function which, most of time, fail supporting simple operator priorities and parenthesis.
88

99
**SQL Eval.NET** is a complete solution which, not only lets you evaluate dynamic arithmetic expression, but lets you use the full C# language directly in T-SQL stored procedures, functions and triggers.
1010

@@ -119,15 +119,15 @@ EXEC Select_Switch 4, 2, 3
119119

120120
### Problem
121121

122-
You have a complex SQL and you know C# Syntax and C# Object could make this problem very easy.
122+
You have a complex SQL and you know C# Syntax and C# Object could very easily solve this problem.
123123

124124
- Regex
125125
- DirectoryInfo / FileInfo
126126
- String.Format
127127

128128
### Solution
129129

130-
Eval SQL.NET improve readability and maintainability over complex SQL. It supports all [.NET framework class libraries](https://msdn.microsoft.com/en-us/library/gg145045.aspx) (FCL) that are supported by [SQL CLR Framework Libraries](https://docs.microsoft.com/en-us/sql/relational-databases/clr-integration/database-objects/supported-net-framework-libraries).
130+
Eval SQL.NET improves readability and maintainability over complex SQL. It supports all [.NET framework class libraries](https://msdn.microsoft.com/en-us/library/gg145045.aspx) (FCL) that are supported by [SQL CLR Framework Libraries](https://docs.microsoft.com/en-us/sql/relational-databases/clr-integration/database-objects/supported-net-framework-libraries).
131131
132132

133133
```csharp
@@ -148,7 +148,7 @@ FROM @t AS A
148148

149149
## Conclusion
150150

151-
Eval SQL.NET can really be seen in SQL Server as the function "eval()" equivalent of JavaScript. Unlike common solutions limited to very simple math expressions, Eval SQL.NET features go way beyond:
151+
Eval SQL.NET can be seen in SQL Server as the function "eval()" equivalent of JavaScript. Unlike common solutions limited to very simple math expressions, Eval SQL.NET features go way beyond:
152152

153153
- Access to C# Operators
154154
- Access to C# Keywords

0 commit comments

Comments
 (0)