Like an orange
Everything here is my opinion. I do not speak for your employer.
October 2007
November 2007

2007-10-07 »

Setting up MS SQL 2007 Express for access via TCP

pmccurdy has been doing some work with us lately, and got to have some "experiences" with Microsoft SQL 2005 Express Edition. Here's a variation on his guide for how you set it up for the first time so that you can access it from a Linux machine over TCP. Blame me for any errors, since I edited it.

  1. Install as normal. Believe that life may yet be worth living.
  2. Ignore the Surface Area configuration thingy. As far as I can tell, its only trick is occasionally crashing. It sure does a bang-up job of reducing your surface area for successful connections from Linux though.
  3. Run the SQL Server Configuration Manager.
  4. Select "SQL Server 2005 Network Configuration", then "Protocols for SQLEXPRESS" (or your selected instance name).
  5. Enable TCP/IP.
  6. Right click TCP/IP, pick Properties.
  7. Click the "IP Addresses" tab.
  8. Under the "IPAll" pseudo-section, delete the entry for "TCP Dynamic Ports" and set "TCP Port" to 1433 (deleting the dynamic port entry may not be needed, but makes it more obvious what's going on if you try to connect with Microsoft's client).
  9. Click OK, acknowledge the dialog box.
  10. Go to SQL Server 2005 Services, and restart the SQL Server service.
  11. Drown your sorrows.
Apparently mono doesn't know how to use the dynamic listener port scheme.

I'm CEO at Tailscale, where we make network problems disappear.

Why would you follow me on twitter? Use RSS.

apenwarr on gmail.com