diff --git a/README.md b/README.md index 5a93a97..5d11721 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,13 @@ -Provide to your SQL Server all missing pieces like regular expression and dynamic arithmetic string evaluation. +# What's Eval-SQL.Net? +Eval SQL.NET is a library that allows evaluating C# expression dynamically directly in T-SQL. + +It provides to your SQL Server all missing pieces like regular expression and dynamic arithmetic string evaluation. ```sql -- SELECT 3 -SELECT SQLNET::New('x+y').ValueInt('x', 1).ValueInt('y', 2).EvalInt() +SELECT SQLNET::New('x+y').ValueInt('x', 1).ValueInt('y', 2).EvalInt() as Result ``` +**Try it online** **Find your solutions:** - Dynamic Arithmetic Expression @@ -13,7 +17,7 @@ SELECT SQLNET::New('x+y').ValueInt('x', 1).ValueInt('y', 2).EvalInt() - Replace xp_cmdshell with DirectoryInfo & FileInfo ## Performance & Scalability -Performance tuning is one of the most important task for a DBA. Don’t miss the chance to **dramatically improve query performance** by **300%** for simple expression and by more than **2000%** for complex code over User-Defined Function (UDF) and Table-Valued Function (TVF). +Performance tuning is one of the most important tasks for a DBA. Don’t miss the chance to **dramatically improve query performance** by **300%** for simple expression and more than **2000%** for complex code over User-Defined Function (UDF) and Table-Valued Function (TVF). _Benchmark to split string with delimiters in SQL_ @@ -25,21 +29,18 @@ _Benchmark to split string with delimiters in SQL_ ## Download **[Eval-SQL.NET-Install.sql](https://github.com/zzzprojects/Eval-SQL.NET/releases)** +_* PRO Version unlocked for the current month_ + _Minimum Requirements:_ - SQL 2012 / SQL Azure v12 - SAFE Permission (SQL CLR) -Stay updated with latest changes - -Twitter Follow -Facebook Like - ## Evaluate dynamic arithmetic/math expression in SQL _Make the impossible now possible. Evaluate C# expression in SQL to overcome limitations._ - Allow trusted users to create report field and filter - Consume Web Service -- Replace text in template with String Interpolation +- Replace text in the template with String Interpolation ```csharp -- CREATE test @@ -51,9 +52,10 @@ DECLARE @sqlnet SQLNET = SQLNET::New('x*y+z') SELECT @sqlnet.ValueInt('x', X) .ValueInt('y', Y) .ValueInt('z', Z) - .EvalInt() + .EvalInt() as Result FROM @table ``` +**Try it online** ## Split text with delimiter _Improve performance and capability for splitting text with an easy to use split function and LINQ expression_ @@ -75,6 +77,7 @@ FROM @t AS A FROM dbo.SQLNET_EvalTVF_1(@sqlnet.ValueString('input', Input)) ) AS B ``` +**Try it online** ## Use regular expression in SQL Server _Use Regex flexibility to overcome “LIKE” and “PATHINDEX” limitations._ @@ -98,9 +101,10 @@ DECLARE @valid_email SQLNET = SQLNET::New('Regex.IsMatch(email, -- SELECT 'invalid.com' SELECT * FROM @customer WHERE @valid_email.ValueString('email', Email).EvalBit() = 0 ``` +**Try it online** ## Replace xp_cmdshell with restrictive alternative -_Avoid enabling xp_cmdshell and compromising your SQL Server and use instead a more restrictive solution._ +_Avoid enabling xp_cmdshell and compromising your SQL Server and use a more restrictive solution instead._ - Impersonate Context - Improve maintainability - Improve readability @@ -123,20 +127,20 @@ EXEC dbo.SQLNET_EvalResultSet @sqlnet ## FREE vs PRO -Features | FREE Version | **[PRO Version](http://eval-sql.net/#pro)** ------------- | :-------------: | :-------------: -Maximum Characters | 50 | Unlimited -Commercial License | No | Yes -Support & Upgrades (1 year) | No | Yes +Features | **[PRO Version](http://eval-sql.net/#pro)** +------------ | :-------------: +Maximum Characters | Unlimited +Commercial License | Yes +Support & Upgrades (1 year) | Yes Learn more about the **[PRO Version](http://eval-sql.net/#pro)** ## Contribute + The best way to contribute is by **spreading the word** about the library: - Blog it - Comment it - - Fork it - Star it - Share it @@ -144,22 +148,17 @@ A **HUGE THANKS** for your help. ## More Projects -**Entity Framework** -- [EntityFramework Extensions](http://entityframework-extensions.net/) -- [EntityFramework Plus](http://entityframework-plus.net) - -**Bulk Operations** -- [Bulk Operations](http://bulk-operations.net/) -- [Dapper Plus](http://dapper-plus.net/) - -**Expression Evaluator** -- [Eval-SQL.NET](http://eval-sql.net/) -- [Eval-Expression.NET](http://eval-expression.net/) - -**Others** -- [Extension Methods Library](https://github.com/zzzprojects/Z.ExtensionMethods/) -- [LINQ Async](https://github.com/zzzprojects/Linq-AsyncExtensions) - -**Need more info?** info@zzzprojects.com - -Contact our outstanding customer support for any request. We usually answer within the next business day, hour, or minutes! +- Projects: + - [EntityFramework Extensions](https://entityframework-extensions.net/) + - [Dapper Plus](https://dapper-plus.net/) + - [C# Eval Expression](https://eval-expression.net/) +- Learn Websites + - [Learn EF Core](https://www.learnentityframeworkcore.com/) + - [Learn Dapper](https://www.learndapper.com/) +- Online Tools: + - [.NET Fiddle](https://dotnetfiddle.net/) + - [SQL Fiddle](https://sqlfiddle.com/) + - [ZZZ Code AI](https://zzzcode.ai/) +- and much more! + +To view all our free and paid projects, visit our website [ZZZ Projects](https://zzzprojects.com/). diff --git a/src/version.txt b/src/version.txt index 75a4ba4..be38891 100644 --- a/src/version.txt +++ b/src/version.txt @@ -1 +1 @@ -v1.0.16 +v1.1.8