Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine version of ODBC driver?
Message
 
 
À
16/02/2016 02:50:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01631493
Message ID:
01631555
Vues:
57
>>>>>I ran the code (big thanks you for the suggestions to Tore and Antonio) that returns ODBC drivers I have installed on my computer. And here are the 3 drives I see:
>>>>>SQL Native Client / Version 09.00
>>>>>SQL Server Native Client 10.0 / Version 10.00
>>>>>SQL Server Native Client 11.0 / Version 03.80
>>>>>
>>>>>The word "native" confuses me since I thought that the SQL Server Native Client does not work with Varchar(MAX). But I do use Varchar(MAX) on this computer and it works. Does it mean that the first one listed above, SQL Native Client / Version 09.00 is the "old" ODBC driver that does work with Varchar(max)?
>>>>
>>>>This post may be helpful: http://blogs.msdn.com/b/sqlnativeclient/archive/2008/02/27/microsoft-sql-server-native-client-and-microsoft-sql-server-2008-native-client.aspx.t
>>>
>>>Thank you very much, Antonio.
>>
>>You're welcome.
>>
>>I am struggling with these beasts, too, mostly regarding date related data types, so, it's a common investigation we're embracing...
>
>I don't remember all the details, but it's really a pain as you said. I know that the latest driver doesn't work with varchar(max) and SQL pass through, you actually end up with blank memo fields. That's why I always use Text type fields instead, although they are "not recommended for new design" and may be unsupported in newer version of MSSQL. And with the older driver you will get access to varchar(max) fields, but not date (or was it datetime, I don't remember). Plus the access to varchar(max) fields is limited to about 8000 characters, if I remember correctly.

One of the reasons I wanted to change Text type to varchar(max) is that LEN(field_name)>0 or LEN(field_name)=0 does not work on Text type. And all my program queries are based on this type of check if a field has entry or not. Varchar(max) works well with LEN().
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform