Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Odd behaviour when accessing SQL_Variant datatype
Message
De
30/01/2006 10:10:24
 
 
À
30/01/2006 09:52:17
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01091395
Message ID:
01091452
Vues:
9
>AFAIK SQL server odbc driver doesn't support sql_variant type and return the >data as a BLOB. The 'incorrect' data you're seeing is unicode data. You might >check the value and if it has chr(0) in it then convert with strconv(). If you >check client machines probably you would see some of them have unicode support >enabled and some are not.
>
>IMHO using sql_variant in the first place is asking for trouble.

Hi Cetin,

Thanks for the advice, the "sql_variant" field seemed to be a handy feature of SQL Server at the time but I'll look to an alternative.

Thanks again,

Ben
Ben Sugden

"Remember to enjoy hunting - and that means relishing the search for the product that has never been advertised or placed handily at the front of the shop; Life begins on the uppermost shelf, avoid guide books and top 10's like the plague." - Ramsey Dukes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform