Skip to content

Commit 3278c58

Browse files
Merge pull request #476 from alfredmyers/patch-1
Fixed typos on sample 'CURL in SQL Server using CLR'
2 parents e3393e7 + 17c57bf commit 3278c58

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

samples/features/sql-clr/Curl/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# 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.
33

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.
55

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.
77
88
### Contents
99

@@ -28,7 +28,7 @@ One of the most popular tool for calling API on `http:` endpoints is [curl](http
2828
## Build the CLR/CURL functions
2929

3030
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:
3232
![Sign assembly](/media/features/sql-clr/sign-assembly.png)
3333

3434
3. Rebuild the solution in **Retail** mode.
@@ -37,7 +37,7 @@ One of the most popular tool for calling API on `http:` endpoints is [curl](http
3737
<a name=add-functions></a>
3838
## Add CURL functions to your SQL database
3939

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.
4141

4242
If you have not added CLR assemblies in your database, you should use the following script to enable CLR:
4343
```
@@ -47,7 +47,7 @@ RECONFIGURE
4747
GO
4848
```
4949

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:
5151
```
5252
5353
--Create the assembly
@@ -111,7 +111,7 @@ exec curl.XPOST @H = @hkey, @d = @body, @url = @endpoint;
111111
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.
112112

113113
## 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.
115115

116116

117117
```
@@ -140,4 +140,4 @@ CREATE PROCEDURE CURL.XPOST (@H NVARCHAR(MAX), @d NVARCHAR(MAX), @url NVARCHAR(4
140140
AS EXTERNAL NAME SqlClrCurl.Curl.Post;
141141
GO
142142
143-
```
143+
```

0 commit comments

Comments
 (0)