Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ALLTRIM syntax not support with SQL Server
Message
De
10/04/2003 11:21:48
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
10/04/2003 10:43:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00775890
Message ID:
00776103
Vues:
21
>>I think I understand what you mean now. If result datatype was a memo then trailer wouldn't occur ( or if you specify size with convert(char(4),year(adddate)), str(year(adddate),4) )
>>Specifying the size would work for you here since you know result would always be 4 (at least for our lifespan)
>>Otherwise you could prevent trailing forcing the datatype to memo.
>>
>>
>>cursorsetprop('UseMemoSize',1,0)
>>SQLExec(lnHandle,'SELECT LTRIM(STR(YEAR(AddDate))) as cYear FROM News')
>>? cYear+'A'
>>
>
>Running with this property generates the result to be dumped into a memo field. Isn't there a way to have it trim in a character field?

Not one I know.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform