Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using connection string
Message
From
09/10/2012 11:06:30
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01554512
Message ID:
01554556
Views:
50
>>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform