Link to home
Start Free TrialLog in
Avatar of Jim Metcalf
Jim MetcalfFlag for United States of America

asked on

SQL Server - 1 hostname - many sql servers?

Is there a way for me to have one sql server host name but have many sql servers using the same hostname.  I hope there is something for this.
example.

2012 sql server - hostname - server1  - has databases,  apple and orange on it
2014 sql server - hostname - server2 - has databases, one and two on it
2016 sql server - hostname - server3 - has databases , car and truck on it

i would like all the connection strings to be BigSqlServer and then the database name

ie   BigSqlServer\apple - actually forwards it to Server1\apple
ie.  BigSqlServer\truck     - actually forwards it to Server3\truck


the other thing i would hope to do is to move a database from one server to another and leave not have to worry about client connections
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

actually it would  be  computername\instancename\database
computername is looked up and an ip address is returned. You can't have more than 1 computer with the same ip address
ASKER CERTIFIED SOLUTION
Avatar of Raja Jegan R
Raja Jegan R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or you can simply assign a different port number to two or all instances, like:

User generated image
Then append the port number to the hostname in the connection string as hostname,portnumber like:

BigSqlServer,10433
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jim Metcalf

ASKER

Thanks Gentlemen
looks like for me to achieve what i want, i'm going to have to implement something bigger than expected.