?
Solved

refining sp_linkedservers

Posted on 2004-09-06
2
Medium Priority
?
1,418 Views
Last Modified: 2008-01-09
Hi.

sp_linkedservers returns a resultset. How can I use this data in a sql query if I cannot refer to it ?
I wanted to check if my server is in this resultset list and then take some action.

Gregor


0
Comment
Question by:gregajesih
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:gregajesih
ID: 11989509
Found by serching.. thanks for reading my question..sorry for bothering..
0
 
LVL 10

Accepted Solution

by:
AustinSeven earned 1000 total points
ID: 11989530
insert the output into a temp table.   However, you'll need to create the temp table with the required columns so you'll need to examin the QA output:-

create table #linkedsrv (
SRV_NAME varchar(100),
SRV_PROVIDERNAME varchar(100),
SRV_PRODUCT varchar(100),
SRV_DATASOURCE varchar(100),
SRV_PROVIDERSTRING varchar(100),
SRV_LOCATION varchar(100),
SRV_CAT varchar(100) )

insert into #linkedsrv
exec sp_linkedservers

select * from #linkedsrv

drop table #linkedsrv


AustinSeven
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question