What is the best way to share Queries with SQL Authentification on an Network Drive
The Linq file include the User and the encrypted Password. It looks that he password is encrypted with DPAPI. That mean that i can call this Query with lprun.exe but no other user in my company, they can't connect to the SQL Database . What is the best strategy to share queries with other user without additional configuration(create named connections on each user computer) and external (Instand share) Cloud.
Thanks Wolfgang
Thanks Wolfgang
Comments
- Right-click the connection that automatically appears and click Properties
- Enter your credentials
- Tick 'Remember this connection'
- Click OK
Any other queries that use the same connection ID will then pick up the credentials.Otherwise, I don't know of a solution. LINQPad could allow credentials to be saved unencrypted, but would you be happy with this?
Thanks for responding!
J.
A certificate-based encryption would be fine - build-/triggerservers could have this preinstalled and seems fairly simple. Although a bit more expensive to implement, than a simple clear text option.
Redefine the connection string in the "Additional connection string parameters":
Integrated security=False;User ID=sa;Password=secret
You can set the authentication mode to Windows.
The password is saved in plain text: If it doesn't work on first try, redefine the connection first (Create Similar Connection) and try again..
I also noticed that the "Addition connection string parameters" textbox doesn't allow the text to be selected using CTRL-A hotkey.