Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL-DMO doesn't return Server available
Message
 
 
To
20/01/2009 14:37:34
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2000
Application:
Desktop
Miscellaneous
Thread ID:
01375255
Message ID:
01375615
Views:
32
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform