我们能否在不使用服务器名称中使用/sqlexpress的情况下访问sql server r2 [英] can we access the sql server r2 without using /sqlexpress in the server name

查看:244
本文介绍了我们能否在不使用服务器名称中使用/sqlexpress的情况下访问sql server r2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试在r2 express中访问我的数据库.但是当我在服务器名称中写入my-pc/sqlexpress时,它可以正常工作并且m服务器可以正常工作.
但是,当我尝试使用my-pc访问时.它不起作用.
谁能帮忙.为什么会这样?

在此先感谢

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

推荐答案

是的,我们可以在不使用sqlexpress的服务器名称的情况下访问r2
yes we can access r2 with out sqlexpress in server name


因为您可以拥有多个SQL实例安装在系统上的服务器,每个服务器都有不同的版本.

因此,如果您未指定要访问的实例,则无法将它们彼此区分开.

您也可以在SQL Server中使用Alias es为服务器创建自定义名称:
http://geekswithblogs.net/twickers/archive/2009/12/08/136830.aspx [^ ]

希望对您有所帮助.
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.




如Amir所说,您的计算机中正在运行sql服务器的多个版本或多个实例.

因此您可以执行以下任一解决方案,

1)删除所有其他SQL实例,应该只有一个任何版本的实例.
2)从"services.msc" 停止所有其他SQL Server服务,然后使用."(当前服务器)可以正常工作.


希望以上解决方案对您有用,

谢谢
-amit.
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.


这篇关于我们能否在不使用服务器名称中使用/sqlexpress的情况下访问sql server r2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆