Home All Groups Group Topic Archive Search About
Author
18 May 2006 7:57 PM
Derek Hart
Is there a SQL statement that can detect if a linked server exists?

Author
18 May 2006 8:17 PM
Mark Williams
You can query the sysservers system table in SQL 2000, or the sys.servers
system view in SQL 2005.
--


Show quote
"Derek Hart" wrote:

> Is there a SQL statement that can detect if a linked server exists?
>
>
>
Author
18 May 2006 8:25 PM
Tibor Karaszi
.... and if the definition exists and you want to see "if it is there", you can use the new
sp_testlinkedserver
in 2005.

Show quote
"Mark Williams" <MarkWilli***@discussions.microsoft.com> wrote in message
news:D97EAED7-F0C4-4956-BE52-576FE29AC5EF@microsoft.com...
> You can query the sysservers system table in SQL 2000, or the sys.servers
> system view in SQL 2005.
> --
>
>
> "Derek Hart" wrote:
>
>> Is there a SQL statement that can detect if a linked server exists?
>>
>>
>>
Author
18 May 2006 8:56 PM
Mark Williams
Most excellent!

Show quote
"Tibor Karaszi" wrote:

> .... and if the definition exists and you want to see "if it is there", you can use the new
> sp_testlinkedserver
>  in 2005.
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>

AddThis Social Bookmark Button