SQL Server 2008 SSMS连接和http连接字符串?

发布于 2024-08-23 12:43:55 字数 269 浏览 1 评论 0原文

我的服务器上有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小鸟爱天空丶 2024-08-30 12:43:55

您可以使用Sql Server Configuration Manager来完成这项工作。当您运行此应用程序时,展开SQL Server网络配置,之后您可以看到Protocols for sql server 2008。通过单击它您可以启用或禁用TCP/IP。

你的连接字符串可以是这样的:

connectionString="Database=DBName;Server = Server IP;Integrated Security=false;user id=sa; password=Pass;

you can use Sql Server Configuration Manager for this work. when you run this application, expand the SQL 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 :

connectionString="Database=DBName;Server = Server IP;Integrated Security=false;user id=sa; password=Pass;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文