Skip to content

Commit 618c511

Browse files
authored
Merge branch 'main' into saumya/pref-setup
2 parents 4acc3d7 + d339f6d commit 618c511

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

benchmarks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Standalone script that tests real-world queries against AdventureWorks2022 datab
2323
- Ensure you have a running SQL Server instance.
2424
- Set the `DB_CONNECTION_STRING` environment variable with the connection string to your database. For example:
2525
```bash
26-
export DB_CONNECTION_STRING="Server=your_server;Database=your_database;UID=your_user;PWD=your_password;"
26+
export DB_CONNECTION_STRING="Server=your_server;Database=AdventureWorks2022;UID=your_user;PWD=your_password;"
2727
```
2828

2929
2. **Install Richbench - Benchmarking Tool**:

benchmarks/perf-benchmarking.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
# Configuration
3030
CONN_STR = os.getenv("DB_CONNECTION_STRING")
3131

32+
if not CONN_STR:
33+
print("Error: The environment variable DB_CONNECTION_STRING is not set. Please set it to a valid SQL Server connection string and try again.")
34+
sys.exit(1)
35+
3236
# Ensure pyodbc connection string has ODBC driver specified
3337
if CONN_STR and 'Driver=' not in CONN_STR:
3438
CONN_STR = f"Driver={{ODBC Driver 18 for SQL Server}};{CONN_STR}"

0 commit comments

Comments
 (0)