Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL-DMO doesn't return Server available
Message
 
 
À
20/01/2009 14:37:34
Peter Wagner
Point Informática Ltda.
Limeira, Brésil
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2000
Application:
Desktop
Divers
Thread ID:
01375255
Message ID:
01375615
Vues:
29
This message has been marked as a message which has helped to the initial question of the thread.
For SQL 2000
IF NOT EXISTS (SELECT 1 FROM master.dbo.sysservers srv WHERE srv.srvname = N'MyLinkedServer')
For SQL 2005
IF NOT EXISTS (SELECT 1 FROM sys.servers srv WHERE srv.server_id != 0 AND srv.name = N'MyLinkedServer')
>what I need is to know if a specific SQL Server is linked to another SQL Server, if not link whit sp_addlinkedserver...
>not to start-stop the SQL Server.
>For some stupid reasons they want to unconnect a linked server conection from a Web server and when some SQL stranasctions occurs re-establish the conection to send some info to the local network server, a after thar disconect the linked server again.
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform