Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL server connection problems
Message
De
08/05/2013 09:32:10
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL server connection problems
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01573033
Message ID:
01573033
Vues:
67
From my laptop I connect easily to the MSSQL 2012 database which is set up on a server. I use SQLStringconnect() to connect. But when I compile the application and try to run it on another machine, I cannot connect. I have installed the new ODBC driver.

This is the connection string I use: "DRIVER=SQL Server Native Client 11.0; SERVER=xxxx01; Database=YYYY; Trusted_Connection=Yes;"
The error I receive, from aerror(),is:
1526 Connectivity error: [Microsoft ODBC Driver Manager] Data source name not found and no default driver specified
Aerror(1,4): IM002
Aerror(1,5): 0
Aerror(1,6): 1

What am I missing?

Update! I resolved the issue by using this connection string: "Driver={SQL Server}; SERVER=xxxx01; Database=YYYY; Trusted_Connection=Yes;"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform