SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Syntax check underlines valid columnname

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
Syntax check underlines valid columnname
Author Message
birgerii



Joined: 21 Feb 2007
Posts: 29

Post Syntax check underlines valid columnname Reply with quote
Hi,
I noticed the following. In the code below, the pr2.posnr does not exist, but the syntax check underlines orr.posnr as the error, and orr.posnr does exist.

SELECT distinct orr.z_lf
, orr.orderid
, orr.posnr
, orr.antal_forp
, pr2.posnr
, pr2.*
FROM orr
LEFT JOIN pr ON
orr.orderid = pr.orderid
AND orr.posnr = pr.orderposnr
INNER JOIN #tmp_order o ON
orr.orderid = o.orderid
INNER JOIN pr pr2 ON
o.orderid = pr2.orderid

I'm using SQL Assistant version 5.0.97, and I run
SQL Query Analyser version 8.00.2039 on my local PC with XP, connecting to a SQL2000 database on a database server in our network.
Wed May 05, 2010 11:10 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7849

Post Reply with quote
Hi,

Your database server "tells" SQL Assistant that column "posnr" doesn't exist, but it doesn't say in which specific line the non-existent column is found. Because the exact location is unknown, SQL Assistant finds and highlights the first reference to the column. This is best it can do.
Thu May 06, 2010 8:06 am 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.