Home > Database > Mysql Tutorial > body text

sqlserver中创建链接服务器图解教程

WBOY
Release: 2016-06-07 18:01:33
Original
1059 people have browsed it

链接服务器在跨数据库/跨服务器查询时非常有用(比如分布式数据库系统中),本文将以图文方式详细说明如何利用SQL Server Management Studio在图形界面下创建链接服务器。

1.展开服务器对象-->链接服务器-->右击"新建链接服务器"

注意:必须以数据库管理员身份登录(通常也就是sa帐号)后,才可以创建"链接服务器"


2.输入链接服务器的IP

3.设置链接服务器的安全性


完成后,如下图:

现在测试一下,用帐号user本地登录SqlServer,新建一个查询,输入Select * From [链接服务器名].[远程数据库名].[所有者].[表名]
比如
Select * from [127.0.0.1].[cntvs].[dbo].[t_class]
没问题的话,就能查询到数据了
作者:菩提树下的杨过

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!