SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
No Assistance in joins within an update

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
No Assistance in joins within an update
Author Message
judahr



Joined: 09 Mar 2007
Posts: 319
Country: United States

Post No Assistance in joins within an update Reply with quote
v3.0.24

Assuming this query:

Update tbl
Set Col = 'Value'
From Database.dbo.Table tbl
Inner Join dbo.Table2 tbl2
On tbl2.ID = tbl.


I would expect tbl. to produce a list of columns within Database.dbo.Table. No popup appears after the . and ctrl-space gives list of objects.
Wed Dec 05, 2007 4:57 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7842

Post Reply with quote
That's because of tbl reference in the UPDATE. Clause. SQL Assistant doesn't know if that's a table name or something else. It expects to find a table name there. Because tbl is not a known table, it cannot suggest any columns for this table.

Suggestion, change your SQL to a more common format

Update Database.dbo.Table
Set Col = 'Value'
From Database.dbo.Table tbl
Inner Join dbo.Table2 tbl2
On tbl2.ID = tbl.


this will make SQL Assistant show column list for tbl.
Wed Dec 05, 2007 6:12 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.