惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Privacy International News Feed
I
Intezer
T
Tenable Blog
S
Schneier on Security
Project Zero
Project Zero
G
GRAHAM CLULEY
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
Know Your Adversary
Know Your Adversary
博客园 - 司徒正美
The Cloudflare Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
N
News and Events Feed by Topic
博客园 - 叶小钗
宝玉的分享
宝玉的分享
L
LINUX DO - 热门话题
aimingoo的专栏
aimingoo的专栏
S
Secure Thoughts
Forbes - Security
Forbes - Security
T
The Exploit Database - CXSecurity.com
D
Darknet – Hacking Tools, Hacker News & Cyber Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 【当耐特】
罗磊的独立博客
IT之家
IT之家
H
Hacker News: Front Page
I
InfoQ
云风的 BLOG
云风的 BLOG
S
Security Affairs
M
MIT News - Artificial intelligence
GbyAI
GbyAI
Jina AI
Jina AI
Help Net Security
Help Net Security
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
Webroot Blog
Webroot Blog
L
Lohrmann on Cybersecurity
A
About on SuperTechFans
Attack and Defense Labs
Attack and Defense Labs
The Register - Security
The Register - Security
V
V2EX
G
Google Developers Blog
D
DataBreaches.Net
Apple Machine Learning Research
Apple Machine Learning Research
C
Cybersecurity and Infrastructure Security Agency CISA
J
Java Code Geeks
W
WeLiveSecurity
Cloudbric
Cloudbric
T
Tor Project blog

博客园 - 微雨杏花村

CentOS firewalld 防火墙操作 CentOS 安装 dotnetcore CentOS7防火墙设置--iptables CentOS7.0 安装 Nginx Win10下Hyper-V设置网络连接 亲测Google开源JPEG图片压缩算法,可将JPEG文件缩小%35 android 术语 一些比较好用的网站整站下载工具 ASP.NET Page Life Cycle 获取网页URL地址及参数等的两种方法(js和C#) .net 注册和删除Windows服务 IIS7 下部署 MVC的注意事项 下载的四种方法 生成网站页面的截图 windows 下andriod 开发环境的搭建 无法上网,无线网络总是受限制或无连接 bcp命令详解-转载 searcherinder.exe .net 生成静态页
SQL跨数据库读取数据的方法
微雨杏花村 · 2011-04-27 · via 博客园 - 微雨杏花村

本文讲一下SQL跨数据库读取数据的方法,应该很多人都知道吧,本文就简单说一下。

--创建链接服务器

exec  sp_addlinkedserver  'srv_lnk', ' ', 'SQLOLEDB ', '121.52.215.250'

exec  sp_addlinkedsrvlogin  'srv_lnk', 'false ',null, 'sa ', '12345678'

go

--导入示例

SET IDENTITY_INSERT MN_ExamPaper ON

--INSERT into MN_ErrorExam(id,qid,errorNum,qType) select *  from  srv_lnk.OnLine.dbo.ErrorTitle

SET IDENTITY_INSERT MN_ExamPaper off

--不再使用时删除链接服务器

exec  sp_dropserver  'srv_lnk', 'droplogins'