|
database
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Linked ServerHi,
anyone knows how to verify if a linked server is active only using SQL code? This question is because I need to check if a created linked server is ok to perform actions on it. Many thanks, Luis From the server where the linked server item is set up
Try doing a Select top 10 * from Linkedserver.DbName.dbo.MyTable Show quote "Luis Oliveira" wrote: > Hi, > anyone knows how to verify if a linked server is active only using SQL code? > This question is because I need to check if a created linked server is ok to > perform actions on it. > Many thanks, > Luis > > > Try
SELECT 1 AS A Show quote "Luis Oliveira" <luis_mg_olive***@hotmail.com> wrote in message news:42c3fa44$0$14384$a729d347@news.telepac.pt... > Hi, > anyone knows how to verify if a linked server is active only using SQL code? > This question is because I need to check if a created linked server is ok to > perform actions on it. > Many thanks, > Luis > > |
|||||||||||||||||||||||