table name prepended to column names in INSERT column list
bstrautin
Posts: 8 Bronze 2
If the "Qualify column names with table name" option is set, SQL Prompt incorrectly qualifies column names in an INSERT statement's column list.
For example, for table 'Foo' with column 'FooID', if I type
For example, for table 'Foo' with column 'FooID', if I type
INSERT INTO foo (f[tab]I get:
INSERT INTO Foo (Foo.FooIDThis is invalid SQL. Instead, the code should looke like:
INSERT INTO Foo (FooID
Comments
When you use the 'Auto-Insert' option SQL Prompt provides this same query works fine.
For that make sure you have following option selected: SQL prompt 5 --> options --> Inserted Code --> Objects & Statements --> Insert Full Insert statement.
And after saving the setting above in a new query window type :
and it will insert code and not qualify it with column names.
Please let me know how you get on with it.
Product Support
Redgate Software Ltd.
E-mail: support@red-gate.com