Skip to content

Commit d867502

Browse files
authored
Merge pull request #19 from pawarbi/alpha
Update README.md with corrected example
2 parents 5dad86c + eb42078 commit d867502

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +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
54-
connection = connect("SERVER=<your_server_name>;DATABASE=<your_database_name>;UID=<your_user_name>;PWD=<your_password>;Encrypt=yes;")
54+
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)
5556

5657
# Execute a query
5758
cursor = connection.cursor()

0 commit comments

Comments
 (0)