如何使用来自不同网络的 SQL Server

2021-09-16 00:00:00 vb.net sql-server

我家里有一个 SQL 服务器,在同一个网络中一切正常.

I have a SQL server running in my home, and everything in the same network works fine.

我希望家里的计算机运行 SQL Server,并使用 VB.NET 应用程序从学校连接到它.

I would like for my computer at home to be running the SQL Server, and with a VB.NET application connect to it from school.

有什么办法吗?谢谢.

推荐答案

唯一的办法就是把你家的comp发布到互联网上的真实IP.所以你需要从你的提供商那里得到真实的 IP 地址,端口映射为 1433 到你的家用电脑.不要忘记为 sa 帐户创建强密码.您还需要使用 SQL proto 从学校访问互联网.在许多情况下,在公共网络中只启用了 http/https.

The only way is to publish you home comp to the Internet real IP. so you need real IP address from your provider with port map 1433 to your home computer. don't forget to create strong password for sa account. also you need access from school to internet with SQL proto. In many cases in public networks only http/https is enabled.

相关文章