Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using connection string
Message
De
09/10/2012 11:06:30
 
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 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01554512
Message ID:
01554556
Vues:
52
>>>>Hi all,
>>>>
>>>>I am tring to open a SQL connection via VFP. But when I execute the SQLStringConnect function, I get the DSN dialog. It is requesting tkat I choose a DSN. Here is example of the connection string.
>>>>
>>>>
>>>>"Data Source=servername;Initial Catalog=cbana;User ID=user;Password=mypassword;"
>>>>
>>>>
>>>>I am missing something from the string?
>>>
>>>You use OLEDB connection string. You should use ODBC one :-)
>>
>>Example?
>
>"Driver={SQL Server};Server=ServerName;DataBase=cbana;UID=user;PWD=mypassword;"

thanks
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform