You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/features/sql-clr/Curl/README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
# CURL in SQL Server using CLR
2
-
SQL Server Database Engine don't have built-in functions that would enable you to send information to some API using `http://` protocol. If you would need to call some REST endpoint or a web hook from the T-SQL code, you would need to use `WebClient` or `WebRequest` classes from .Net framework and expose them as T-SQL function or procedure.
2
+
SQL Server Database Engine doesn't have built-in functions that would enable you to send information to some API using `http://` protocol. If you need to call some REST endpoint or a web hook from the T-SQL code, you will need to use `WebClient` or `WebRequest` classes from .Net framework and expose them as a T-SQL function or procedure.
3
3
4
-
One of the most popular tool for calling API on `http:` endpoints is [curl](https://curl.haxx.se). This code sample demonstrates how to create CLR User-Defined function/procedure that provides CURL-like functionalities in T-SQL.
4
+
One of the most popular tools for calling an API on `http:` endpoints is [curl](https://curl.haxx.se). This code sample demonstrates how to create CLR User-Defined function/procedure that provides CURL-like functionalities in T-SQL.
5
5
6
-
> This code exposes minimal CURL functionalities required for the basic demo purposes. If you need some advanced features, you can modify the code.
6
+
> This code exposes minimal CURL functionalities required for the basic demo purposes. If you need more advanced features, you can modify the code.
7
7
8
8
### Contents
9
9
@@ -28,7 +28,7 @@ One of the most popular tool for calling API on `http:` endpoints is [curl](http
28
28
## Build the CLR/CURL functions
29
29
30
30
1. Download the source code and open the solution using Visual Studio.
31
-
2. Create a .pfk file (go to Project > Properties > Signing) to sign te assembly:
31
+
2. Create a .pfx file (go to Project > Properties > Signing) to sign the assembly:
@@ -37,7 +37,7 @@ One of the most popular tool for calling API on `http:` endpoints is [curl](http
37
37
<aname=add-functions></a>
38
38
## Add CURL functions to your SQL database
39
39
40
-
File SqlClrCurl.sql contains the code that will import CURL assembly into SQL Database.
40
+
File SqlClrCurl.sql contains the code that will import the CURL assembly into SQL Database.
41
41
42
42
If you have not added CLR assemblies in your database, you should use the following script to enable CLR:
43
43
```
@@ -47,7 +47,7 @@ RECONFIGURE
47
47
GO
48
48
```
49
49
50
-
Once you enable CLR, you can use the T-SQL script to add the **CURL** functions. The script depends on the location where you have built the project, and might look like:
50
+
Once you enabled CLR, you can use the T-SQL script to add the **CURL** functions. The script depends on the location where you have built the project, and might look like:
The code included in this sample is not intended to be a set of best practices on how to build scalable enterprise grade applications. This is beyond the scope of this sample.
112
112
113
113
## Apendix
114
-
In order to quickly test the function in your dev environment, you can create and assembly using the following script that imports assembly from binary format. Recommendation it to take the source code, compile it, and execute the script shown above.
114
+
In order to quickly test the function in your dev environment, you can create an assembly using the following script that imports the assembly from binary format. Recommendation is to take the source code, compile it, and execute the script shown above.
0 commit comments