Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 How to check linked server SQL version?

Author  Topic 

pacolim
Starting Member

11 Posts

Posted - 2010-05-11 : 23:03:33
The command below can check for version:
Select @@VERSION

but if I want to check for linked server SQL version, what should I do? Let say the linked server name is LS1, it's not working by using command below:
Select [LS1].@@VERSION

Is there any msdb table which can provide this information? Basically I want to differentiate SQL Server 2000 & 2005.

Thanks in advanced.

Kristen
Test

22859 Posts

Posted - 2010-05-12 : 03:01:58
[code]
SELECT *
FROM OPENQUERY(MyLinkedServer, 'SELECT @@VERSION')
[/code]
Go to Top of Page

pacolim
Starting Member

11 Posts

Posted - 2010-05-12 : 03:13:28
thanks for help, Kristen. :)
Go to Top of Page
   

- Advertisement -