Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL server connection problems
Message
De
08/05/2013 12:04:11
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
08/05/2013 09:32:10
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 XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01573033
Message ID:
01573042
Vues:
56
>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;"

Your solution means you'll be missing out on a few things that newer drivers do, like extra columns on sqlcolumns(..."NATIVE"), proper handling of newer data types etc. Not a big loss, IMO - I haven't found a need for any of those yet. Your connectstring looks like it's using the SQL2000 driver.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform