Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define DSN with user and password
Message
From
05/06/2003 10:21:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
05/06/2003 10:10:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00796694
Message ID:
00796702
Views:
15
>How I can define DNS file with UserID and Password, for use with MSDE in a Windows 98, then SQL Security, no Windows Security.
>
>I read this article :
>
>http://www.pinnaclepublishing.com/FT/FTMag.nsf/WebIndexByIssue/2488194579B6EFC0852568CF0073C523?opendocument
>
>And say:
>
>"if you pass a user ID and/or password when configuring a SQL Server connection, the SQLConfigDataSource function will fail every time"
>
>Then, how could I do that?
>
>Regads,
>José Luis.

Use a connectionstring instead. ie:
lnConStr = 'Driver=SQL server;Server=servername;User ID=user;Password=pwd;'
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform