From ebfcf1cb8c821cdaed06971b4ab6d38ce9ac7565 Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Thu, 2 Oct 2025 12:02:18 -0700 Subject: [PATCH] feat: add full table name to context file --- CLOUD-SQL-SQLSERVER.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CLOUD-SQL-SQLSERVER.md b/CLOUD-SQL-SQLSERVER.md index 6e660d3..de40f5d 100644 --- a/CLOUD-SQL-SQLSERVER.md +++ b/CLOUD-SQL-SQLSERVER.md @@ -82,4 +82,10 @@ Users may have set project environment variables: * `CLOUD_SQL_MSSQL_DATABASE`: The name of the database. Instead of prompting the user for these values for specific tool calls, prompt the user to verify reuse a specific value. -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`. \ No newline at end of file +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`. + +## Use Full Table Name Format "DATABASE_NAME.SCHEMA_NAME.TABLE_NAME" + +**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. +* Default to using "dbo" for the schema name. +* Use command `echo $CLOUD_SQL_MSSQL_DATABASE` to get the current database value.