0

When I'm trying to connect to my database, I need to provide the instance name like so:

192.168.10.10\SQLEXPRESS

I'd like to be able to just connect to my database without having to type the instance name, like so:

192.168.10.10

How can I accomplish this? I'm using SQL Server 2008 Express R2

Nobody
  • 15,510
TtT23
  • 147

3 Answers3

1

That's not a server name, it's an instance name, and it's necessary, as there may be several SQL instances running on a single server.

EEAA
  • 110,608
0

You cannot change the default instance for a host. The default instance is always the "unnamed instance".

You can fiddle with things on the client side of the connection by setting up an alias. See this ServerFault answer. This solution works fine in a development or testing environment, or if you have a small number of computers connecting to a production database. If you have a large number of computers connecting to the database, getting the configuration right on each computer can be onerous without some sort of automation/scripting.

Darin Strait
  • 2,012
0

As I see it, you have two options:

1) Reinstall SQL Express and choose the option to name the instance. Choose the Default Instance option, or type in MSSQLSERVER (which is the default instance's real name).

2) Connect into the instance on its assigned port number. Each SQL instance is assigned a dynamic port number, so you should set a static port number for the instance in SQL Server Configuration Manager. Then connect to it via a connection string like 192.168.10.10;1443

KJ-SRS
  • 994