Click here to Skip to main content
15,888,293 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hello guys,

i m trying to access my db in r2 express.but when i write my-pc/sqlexpress in server name then it works fine and m server works properly.
But when i try to access using my-pc. it doesn't work.
can anybody help.why it happens so?

thanks in advance
Posted
Updated 18-Dec-11 22:30pm
v2

yes we can access r2 with out sqlexpress in server name
 
Share this answer
 
Because you can have multiple instances of SQL Servers installed on your system and each of them have different version.

So there is no way to distinguish them from each other if you do not specify to which instance do you want access.

Also you can use Aliases in SQL server to create custom names for your server :
http://geekswithblogs.net/twickers/archive/2009/12/08/136830.aspx[^]

Hope it helps.
 
Share this answer
 
v2
Hi,

as Amir says , multiple versions or multiple instance of sql server are running in your computer.

so you can do either of below solution,

1) Remove all other SQL instances, there should be only one instance of any version.
2) Stop all other SQL server services from "services.msc" and then use "."(current server) will work fine.


hope above solution will work for you,

thanks
-amit.
 
Share this answer
 
Comments
Wendelius 19-Dec-11 12:35pm    
Why on earth should the OP do that. Multiple instances are supported in order to have several SQL Servers running at the same time. So since this is a well designed mechanism by Microsoft, why would OP have to remove (or shutdown) other instances.
AmitGajjar 19-Dec-11 23:06pm    
As he ask about, he do not want to give instance name of sql server thats why...

hope i am correct ;)
To add to previous answers, one of the instances can be a default instance which can be referred without specifying anything but the machine name. All other instances must be named instances and to connect to them, you have to define the name of the instance in your connection string.

For more information, see: http://technet.microsoft.com/en-us/library/ms143531.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900