Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best Practice- Use Connections in DBC or ODBC
Message
From
24/11/2004 06:34:44
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00964163
Message ID:
00964195
Views:
9
This message has been marked as the solution to the initial question of the thread.
>Hi all
>
>I just want to know which is better, if that is the case, Connection in a DBC or directly the ODBC DSN?
>
>Please advise.

I prefer ODBC DSN because you can:
SQLCONNECT('{ODBC_DSN}',oApp.cUserId, oApp.cPassword)
or
SQLSTRINGCONNECT('DSN={ODBC_DSN};'+other connection clauses)

and saving password in DBC or registry is not needed.

But you will need a connection in DBC if you are using remote views (I don't know if VFP6 has CONNSTRING clause in USE command).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform