Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALLTRIM syntax not support with SQL Server
Message
From
10/04/2003 08:16:02
 
 
To
10/04/2003 04:52:57
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00775890
Message ID:
00775953
Views:
15
>You could use ltrim(),rtrim() as Liam said. Alternatively you could use the convert function :
>
SQLExec(lnHandle,'SELECT convert(char(4),YEAR(AddDate)) FROM News')
Ok, this is good. As you may read in the other message I just created in this thread, I was looking for a way to remove the extra spaces at the end. So, this does it ok. However, this SQL syntax only work in SQL Server. Wouldn't there be a way to have a common SQL Syntax to be supported for VFP native table and SQL Server?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform