如何使LINQPAD DB连接在多台计算机上工作?
我有许多用于查询数据库的LINQPAD脚本。这些文件全部都在Dropbox中,因此我在计算机上都有所有查询。非常方便。
但是,每个脚本都与数据库连接绑定,并且该连接在不同的计算机上不起作用。我猜这与密码的存储方式有关。是否有一种方法可以使LINQPAD脚本中的DB连接在不同的计算机上有效?
I have many LinqPad scripts I use to query databases. These files are all in dropbox so I have all my queries available across computers. Very handy.
However each script is tied to a database connection, and that connection does not work on different computers. I'm guessing it has to do with how the passwords are stored. Is there a way to get the db connections in the linqpad scripts to be valid across different computers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在另一台计算机上打开查询后,右键单击自动出现在模式资源管理器中的连接,更新密码,然后单击“记住此连接”。
这样可以将连接详细信息保存到您的本地计算机上,该计算机优先于查询中存储的连接详细信息。
After opening the query on another computer, right-click the connection that automatically appears in the Schema Explorer, update the password, and click 'Remember this connection'.
This saves the connection details to your local computer, which takes precedence over the connection details stored in your query.