File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff 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
29292. ** Install Richbench - Benchmarking Tool** :
Original file line number Diff line number Diff line change 2929# Configuration
3030CONN_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
3337if CONN_STR and 'Driver=' not in CONN_STR :
3438 CONN_STR = f"Driver={{ODBC Driver 18 for SQL Server}};{ CONN_STR } "
You can’t perform that action at this time.
0 commit comments