Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/llm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ Common context names: local, dev, prod-ro, prod

### Running Queries

After switching contexts, run queries with the \`query\` subcommand:
**Always set the context explicitly before every query.** Multiple Claude sessions and users share the same sqlcmd config — another session can switch the context at any time. Never assume the current context is what you expect.

\`\`\`bash
sqlcmd query "SELECT @@VERSION"
sqlcmd query -d MyDatabase "SELECT TOP 10 * FROM Users"
sqlcmd config use-context local && sqlcmd query "SELECT @@VERSION"
sqlcmd config use-context stage && sqlcmd query -d MyDatabase "SELECT TOP 10 * FROM Users"
sqlcmd -i ./scripts/query.sql
\`\`\`

Expand Down
Loading