Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ALLTRIM syntax not support with SQL Server
Message
De
10/04/2003 08:22:54
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
10/04/2003 08:16:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00775890
Message ID:
00775959
Vues:
12
>>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?

Wish there could be :) Each database engine might have its own functions. ltrim(), rtrim() are ones that are common in all I know. We might expect all SQL server functions to be supported in future VFP versions - optimistic thinking they're both MS products :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform