Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about SQLSTRINGCONNECT and DSNs
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01155256
Message ID:
01155276
Views:
20
>>Why you need DSN when you could use SQLSTRINGCONNECT()?
>>Just put the whole string in SQLSTRINGCONNECT() and connect to server.

>
>Borislav,
>
>Just to further clarify, the SQL Server connection is to a different application's database, not our own. We've established real-time linking to the other data set to enhance data entry for the user. Subsequently, I don't readily have access to the user's authentication info for the other database.
>
>That brings us to the original question of how I can utilize the info already stored in the ODBC DSN to achieve a smooth transparent logon.
>
>Laterness,
>Jon

Add:
UID=user_id here;
PWD=password;

or
Trusted_Connection=yes

in DSN file. BUT, DSN files are just ordinary Text files and keeping that info in them....

If I was on your place, I would ask the user for His/Her authentication to that DB and store somewhere (crypted of course), then just build a connection string based on that info.
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