Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLStringConnect 'String is too long to fit'
Message
De
08/10/2005 05:13:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/10/2005 04:49:54
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 8 SP1
Divers
Thread ID:
01057057
Message ID:
01057416
Vues:
41
>>I'm trying to connect to an ODBC datasource using the SqlStringConnect function, but i'm getting a 1903 error, 'String is too long to fit'.
>>
>>The connection string is greater than 255 characters, and i have no way of reducing its length. It contains a series of file names including paths and an unlock key which is 128 characters long.
>>
>>Any ideas how i can still use this function, so i can save myself from having to use oledb, which doesn't appear to have the 255 character restriction on a connection string.
>
>I post this BUG to VFPT on Thread #1057411.
>
>VFP checks the length of the string, and if it overcomes the 254 characters it refuses the command.
>There is no solution now.
>
>Don't have the opportunity of sending the paths and an unlock key with a SQLEXEC ?

You're right. I would never thought of it. Then he can first make a simple connection and do rest with sp_attach etc or use a filedsn.
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