Skip to content

Commit 3eaf899

Browse files
authored
Update example code in README.md
1 parent 0d94ac7 commit 3eaf899

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ The driver offers a suite of Pythonic enhancements that streamline database inte
4747
Connect to SQL Server and execute a simple query:
4848

4949
```python
50-
import mssql_python
50+
from mssql_python import connect
5151

5252
# Establish a connection
5353
# Specify connection string
5454
connection_string = ("SERVER=<your_server_name>;DATABASE=<your_database_name>;UID=<your_user_name>;PWD=<your_password>;Encrypt=yes;")
55-
connection = mssql_python.connect(connection_string)
55+
connection = connect(connection_string)
5656

5757
# Execute a query
5858
cursor = connection.cursor()

0 commit comments

Comments
 (0)