Skip to content

Commit 8a3dc6a

Browse files
authored
Update README.md
1 parent 9f54073 commit 8a3dc6a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,23 @@ import mssql_python
4848

4949
# Establish a connection
5050
connection = mssql_python.connect(
51-
server='your_server',
52-
database='your_database',
53-
username='your_username',
51+
server='localhost',
52+
database='test_db',
53+
username='admin',
5454
password='your_password'
5555
)
5656

5757
# Execute a query
5858
cursor = connection.cursor()
59-
cursor.execute("SELECT * FROM your_table")
59+
cursor.execute("SELECT * FROM employees")
6060
rows = cursor.fetchall()
6161

6262
for row in rows:
6363
print(row)
6464

6565
# Close the connection
6666
connection.close()
67+
6768
```
6869

6970
## Still have questions?

0 commit comments

Comments
 (0)