Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How pprotect SA password
Message
From
09/02/2002 12:30:18
 
 
To
09/02/2002 04:03:38
Max Chen
Yx Software
Shunde, China
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00617860
Message ID:
00617903
Views:
29
This message has been marked as a message which has helped to the initial question of the thread.
What I do is at the start of the application, I use SETDBPROP() to set the password, open a dummy view (that will remain opened until the app closes) and immediatly use SETDBPROP() again to remove the password. As long as all the views are sharing their connections (including the dummy view), everything works.

This might not work if every workstation uses the same DBC (on a file server, for example). I prefer to have everything on the workstation (EXE, DBC, etc.), except for things that require to be shared.

BTW, as in everything, the adminitrator account (sa for SQLServer) should only be used for administering, not for everyday use.

>How can i protect the password store in the connection contained in DBC ?
>
>I try use....conntString..., but views can not share their connection
>
>so the transaction not good when 2 views updated togather.
Sylvain Demers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform