SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
String concatenation using Case not supported

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
String concatenation using Case not supported
Author Message
judahr



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

Post String concatenation using Case not supported Reply with quote
Starting with this:

Select
FullName = c.FirstName + ' ' +
CASE DATALENGTH(Isnull( c.MIDDLENAME,'')) WHEN 0 THEN '' ELSE c.MiddleName END +
c.LastName
From dbo.Contact c

Adding a comma after c.LastName then typing:
c.

doesn't produce anything. Aliasing by prefix or suffix has the same result.
Tue Aug 07, 2007 8:48 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6485

Post Reply with quote
Looks like it cannot find dbo.Contact in the current database and so it is unable to suggest columns for that table. Are you coding this in the right database?
Tue Aug 07, 2007 8:56 am View user's profile Send private message
judahr



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

Post Reply with quote
If you comment out the case statement, intellisense works fine. Yes, correct database is being used.

v. 2.5.11 (unless this was fixed in .12?)
Tue Aug 07, 2007 9:23 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6485

Post Reply with quote
Please wait a little bit. We are deciding if we should make build 2.5.14 available today or wait for 2.5.15
Tue Aug 07, 2007 10:05 am View user's profile Send private message
judahr



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

Post Reply with quote
not fixed in .14
Wed Aug 08, 2007 4:50 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6485

Post Reply with quote
Thanks for the update. I will add this is as an issue that requires further investigation.
Wed Aug 08, 2007 5:08 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6485

Post Reply with quote
This should be addressed in build 2.5.17 or .18
Fri Aug 10, 2007 1:01 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.