SQL Server 2008 SSMS连接和http连接字符串?
我的服务器上有一个 SQL Server 2008,该服务器通过域名 computer.example.com 上网,我想在我的 PC 上开发一个 .net 应用程序并通过以下方式连接到该数据库: SSMS - 创建表等等...... 而且我仍然想要一个可以从任何地方访问的连接字符串 - 我正在考虑 http url 或类似的东西 - 这将由应用程序使用。
我必须在服务器上配置什么,以便可以通过 SSMS 连接到数据库(从我的 PC),以及如何获取该数据库的连接字符串?
I have a SQL Server 2008 on a server which goes out on the internet through a domain name computer.example.com, I want to develop a .net app on my PC and to connect to that database through SSMS - to create tables and so on...
And I still want a connection string which can be accessed from anywhere - I'm thinking at a http url or something like that - which will be consumed by the app.
What do I must to configure on the server so that I can connect via SSMS to the database (from my PC) and how do I get a connection string to that database?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
Sql Server Configuration Manager
来完成这项工作。当您运行此应用程序时,展开SQL Server网络配置
,之后您可以看到Protocols for sql server 2008。通过单击它您可以启用或禁用TCP/IP。你的连接字符串可以是这样的:
you can use
Sql Server Configuration Manager
for this work. when you run this application, expand theSQL Server Network Configuration
, after that you can see Protocols for sql server 2008. by click on it you can enable or disable TCP/IP.your connection string can be like this :