  | 
			
				SoftTree Technologies 
				Technical Support Forums
			 | 
		 
		  | 
	 
	 
	
	
	
		
	
	
	
		| Author | 
		Message | 
	 
	
		
			judahr 
			 
			
  
			
			
				Joined: 09 Mar 2007 Posts: 320 Country: United States | 
			 
			  
		 | 
		
			
				  No Assistance in joins within an update | 
				     | 
			 
			
				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 | 
		          | 
	 
	
		  | 
	 
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				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 | 
		          | 
	 
	
		  | 
	 
	
		 | 
	 
 
  
	 
	    
	   | 
	
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
  | 
   
 
		 | 
	 
	  |