Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nvarchar(max) handling using ODBC
Message
De
23/12/2011 13:57:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01531623
Message ID:
01531633
Vues:
48
>Hi everybody,
>
>We are using DSN to connect to SQL Server and sql pass through. In my quick tests few months ago I was having troubles with varchar(max) fields.
>
>So, I have several questions.
>
>1. Can we use nvarchar(max) and VFP with ODBC connection or better to use nvarchar(4000) to be safe?
>
You can do a CAST(varcharmax_field AS TEXT) with ODBC SQL 2005/8 driver
or uses old ODBC SQL 2000 that does an implicit CAST( AS TEXT), but with this you lose other SQL 2008 behaviours.

>2. For editing nvarchar fields (to support other languages) which controls should I use on my forms? Also, assuming we may want to use right to left languages, what additional considerations should be? The languages to support are defined by the user.
>
>Thanks a lot in advance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform