Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL server connection problems
Message
From
08/05/2013 10:04:44
 
 
To
08/05/2013 09:32:10
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01573033
Message ID:
01573034
Views:
60
>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;"

That error means that you have no such driver (SQL Server Native Client 11.0) installed on this computer.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform