We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f54073 commit 8a3dc6aCopy full SHA for 8a3dc6a
1 file changed
README.md
@@ -48,22 +48,23 @@ import mssql_python
48
49
# Establish a connection
50
connection = mssql_python.connect(
51
- server='your_server',
52
- database='your_database',
53
- username='your_username',
+ server='localhost',
+ database='test_db',
+ username='admin',
54
password='your_password'
55
)
56
57
# Execute a query
58
cursor = connection.cursor()
59
-cursor.execute("SELECT * FROM your_table")
+cursor.execute("SELECT * FROM employees")
60
rows = cursor.fetchall()
61
62
for row in rows:
63
print(row)
64
65
# Close the connection
66
connection.close()
67
+
68
```
69
70
## Still have questions?
0 commit comments