简体   繁体   中英

How to connect to MS-SQL 2012 and MS-SQL 2008 on same machine

I have a an application where you can log on to either MS-SQL 2012 and MS-SQL 2008. Fields that can be defined are: Server IP Database Name User Id and Password Schema Prefix

Previously I had no issues with this. Now I am puzzled. I am told MS-SQL 2012 and MS-SQL 2008 are on same box with same IP. I googled this arrangement and it is quite OK to do that.

I have no mental picture of how connecting to one or both of these servers might be carried out.

Are these two installs folded into one? Do they listen on the same port 1433?

Should I be able to access using just the 4 fields I can specify? Server IP,Database Name, User Id and Password and Schema Prefix.

Help if you can, please ;-)

Tony

No, that is not enough information to reach separate SQL Server instances on the same server.

When installing multiple instances of SQL Server, only one instance can be a default instaince, the other instances have to be named instances. Thus, you also need the instance name to reach one of the databases.

However, if the IP address is not strictly only an IP address but a string, you can include the instance name. Example:

123.14.314.73\sql2012

(Note: IP addreses with components above 255 are reserved for examples and movies. ;) )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM