Vào Link sau tham khảo thêm nè Cấu hình tường lửa với cmd
Vậy là tự tay viết 1 cái Add-Ins truy vấn dữ liệu qua Internet ròi đó he
http://thoughtsonopsmgr.blogspot.com/2016/12/ws-2016-server-core-sql-server-2016.html
Coi trong đó thấy có khúc sau:
Create exceptions in Windows Firewall
Do this locally on the VM hosting the relevant SQL version. Start PowerShell when logging in.
These two lines will allow remote access to the default SQL version via TCP port
1433 :
Netsh firewall sets the protocol portopening = TCP port = 1433 name = SQLPort mode = ENABLE scope = SUBNET profile = CURRENT
Netsh advfirewall adds name rule = SQLPort dir = in Protocol = tcp action = allow localport = 1433 remoteip = localsubnet profile = DOMAIN
These two lines will allow remote access from SQL Server Management Studio to SQL version via TCP Port
1434 (also called
SQL Admin Connection )
:
netsh firewall set portopening protocol port = TCP = 1434 name mode = SQLPort = ENABLE scope = SUBNET profile = CURRENT
advfirewall netsh firewall add rule name = SQLPort dir = in protocol = tcp action = localport = 1434 remoteip = localsubnet = DOMAIN profile
Mà Link sau Bác Bill cũng keo thế
https://docs.microsoft.com/en-us/sq...-allow-sql-server-access?view=sql-server-2017