I would like to know how to create a subdomain that is a link to an SQL Server database. I have Windows Server 2008 R2 and SQL Server 2008. I have a static IP on the Windows server, and I have a domain at GoDaddy with the A
host record pointing to the static IP.
I can successfully establish a remote connection to the SQL Server instance through SQL Server Management Studio. But I have to use the www.mydomain.com
instead of something like sqldbmain.mydomain.com
, which is what I would prefer to use.
For another example, if I create a SQL database at some web host like GoDaddy, they give me an external link to my DB like sqldb1234.db.hostedresource.net
. That is what I'm trying to replicate.
I'm not sure whether this is something that has to be managed through IIS on the Windows server, through the domain management at GoDaddy, or through SQL Server management, or even a little bit of all of them.
EDIT
For clarification, I'm accessing the database through SQL Server Management studio. In the field where it asks for the "Server Name" is where I enter www.mydomain.com
, but I would like to enter the value similar to sqldb1234.db.mydomain.com
.