Skip to content

Commit 984b098

Browse files
authored
feat: add full table name to context file (#35)
1 parent 0c30c2d commit 984b098

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CLOUD-SQL-SQLSERVER.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,10 @@ Users may have set project environment variables:
8282
* `CLOUD_SQL_MSSQL_DATABASE`: The name of the database.
8383
8484
Instead of prompting the user for these values for specific tool calls, prompt the user to verify reuse a specific value.
85-
Make sure to not use the environment variable name like `CLOUD_SQL_MSSQL_PROJECT`, `${CLOUD_SQL_MSSQL_PROJECT}`, or `$CLOUD_SQL_MSSQL_PROJECT`. The value can be found by using command: `echo $CLOUD_SQL_MSSQL_PROJECT`.
85+
Make sure to not use the environment variable name like `CLOUD_SQL_MSSQL_PROJECT`, `${CLOUD_SQL_MSSQL_PROJECT}`, or `$CLOUD_SQL_MSSQL_PROJECT`. The value can be found by using command: `echo $CLOUD_SQL_MSSQL_PROJECT`.
86+
87+
## Use Full Table Name Format "DATABASE_NAME.SCHEMA_NAME.TABLE_NAME"
88+
89+
**ALWAYS** use the full table name format, `DATABASE_NAME.SCHEMA_NAME.TABLE_NAME` in the generated SQL when using the `execute_sql` or `cloud_sql_sqlserver__execute_sql` tool.
90+
* Default to using "dbo" for the schema name.
91+
* Use command `echo $CLOUD_SQL_MSSQL_DATABASE` to get the current database value.

0 commit comments

Comments
 (0)