4

My web hosting provider allows me to setup an SQL Server 2008 database from their web pages and then provides with an address of the form "tcp:domain.bla.net" that I can use to connect from anywhere. I can even use SS Management Studio!

My question is, how can I expose my own database in that way from my own server? (assuming I already have a fixed IP).

Mark Henderson
  • 68,823
  • 31
  • 180
  • 259
Nestor
  • 143
  • 1
  • 6

2 Answers2

13

Just a word of caution here: port 1433 (the default SQL Server port) is subject to frequent port scans and brute sa password attacks on the internet. Your instance will be discovered in a matter of hours and will be subject to several automated attacks per day (I'm not kidding). I would highly recommend:

  1. Use a non default port
  2. Harden your SQL Server instance. Make sure you have a very strong sa password, expire and rotate your password, disable non-used logins, use a non sysadmin login when connecting from internet, enforce the SSL encryption requirement on the server side.
Otiel
  • 105
  • 5
Remus Rusanu
  • 8,283
  • 1
  • 21
  • 23
  • Plus note that you do not expose the DATABASE but the SERVER INSTANCE - with all databases that it hosts. Isolating the databases in question may be advisable. – TomTom Feb 26 '13 at 09:45
2

Open port 1443 on your firewall and it should be accessible by IP.

Lukasz
  • 361
  • 2
  • 10