Skip to content

Commit 8445bcf

Browse files
committed
Acrolinx fixes
1 parent 9f840e4 commit 8445bcf

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

docs/connect/python/pymssql/step-1-configure-development-environment-for-pymssql-python-development.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,31 @@ ms.author: v-daenge
1515
# Step 1: Configure development environment for pymssql Python development
1616
You will need to configure your development environment with the prerequisites in order to develop an application using the Python Driver for SQL Server.
1717

18-
Note that the Python SQL Drivers use the TDS protocol, which is enabled by default in SQL Server and Azure SQL Database. No additional configuration is required.
18+
The Python SQL Drivers use the TDS protocol, which is enabled by default in SQL Server and Azure SQL Database. No additional configuration is required.
1919

2020
## Windows
2121

22-
1. **Install Python runtime and pip package manager**
22+
1. **Install Python runtime and pip package manager.**
2323
a. Go to [python.org](https://www.python.org/downloads/)
2424
b. Click on the appropriate Windows installer msi link.
2525
c. Once downloaded run the msi to install Python runtime
2626

2727
2. **Download pymssql module** from [here](https://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql)
2828

29-
Make sure you choose the correct whl file. For example : If you are using Python 2.7 on a 64 bit machine choose : pymssql‑2.1.1‑cp27‑none‑win_amd64.whl. Once you download the .whl file place it in the C:/Python27 folder.
29+
Make sure you choose the correct `whl` file. For example: If you are using Python 2.7 on a 64-bit machine choose `pymssql‑2.1.1‑cp27‑none‑win_amd64.whl`. Once you download the `whl` file, place it in the C:\Python27 folder.
3030

3131
3. **Open cmd.exe**
3232

33-
4. **Install pymssql module**
34-
For example, if you are using Python 2.7 on a 64 bit machine:
33+
4. **Install pymssql module.**
34+
For example, if you are using Python 2.7 on a 64-bit machine:
3535
```
3636
> cd c:\Python27
3737
> pip install pymssql‑2.1.1‑cp27‑none‑win_amd64.whl
3838
```
3939

4040
## Ubuntu Linux
4141

42-
1. **Install Python runtime and pip package manager** Python comes pre-installed on most distributions of Ubuntu. If your machine does not have python installed, you can get either download the source tarball from [python.org](https://www.python.org/downloads/) and build locally, or you can use the package manager:
42+
1. **Install Python runtime and pip package manager.** Python comes pre-installed on most distributions of Ubuntu. If your machine does not have python installed, you can either download the source tarball from [python.org](https://www.python.org/downloads/) and build locally, or you can use the package manager:
4343
```
4444
> sudo apt-get install python
4545
```

docs/connect/python/pymssql/step-3-proof-of-concept-connecting-to-sql-using-pymssql.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The [pymssql.connect](https://pypi.org/project/pymssql/) function is used to con
2929

3030
## Step 2: Execute query
3131

32-
The [cursor.execute](https://pypi.org/project/pymssql/) function can be used to retrieve a result set from a query against SQL Database. This function essentially accepts any query and returns a result set which can be iterated over with the use of [cursor.fetchone()](https://pypi.org/project/pymssql/).
32+
The [cursor.execute](https://pypi.org/project/pymssql/) function can be used to retrieve a result set from a query against SQL Database. This function essentially accepts any query and returns a result set, which can be iterated over with the use of [cursor.fetchone()](https://pypi.org/project/pymssql/).
3333

3434

3535
```python
@@ -45,7 +45,7 @@ The [cursor.execute](https://pypi.org/project/pymssql/) function can be used to
4545

4646
## Step 3: Insert a row
4747

48-
In this example you will see how to execute an [INSERT](../../../t-sql/statements/insert-transact-sql.md) statement safely, pass parameters which protect your application from [SQL injection](../../../relational-databases/tables/primary-and-foreign-key-constraints.md) value.
48+
In this example you will see how to execute an [INSERT](../../../t-sql/statements/insert-transact-sql.md) statement safely and pass parameters. Passing parameters as values protects your application from [SQL injection](../../../relational-databases/tables/primary-and-foreign-key-constraints.md).
4949

5050

5151
```python
@@ -61,13 +61,13 @@ In this example you will see how to execute an [INSERT](../../../t-sql/statement
6161
conn.close()
6262
```
6363

64-
## Step 4: Rollback a transaction
64+
## Step 4: Roll back a transaction
6565

6666
This code example demonstrates the use of transactions in which you:
6767

6868
* Begin a transaction
6969
* Insert a row of data
70-
* Rollback your transaction to undo the insert
70+
* Roll back your transaction to undo the insert
7171

7272
```python
7373
import pymssql

0 commit comments

Comments
 (0)