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
 General SQL Server Forums
 New to SQL Server Programming
 query [msdb].[dbo].[sysjobs] on a linked server

Author  Topic 

pavlos
Yak Posting Veteran

59 Posts

Posted - 2012-08-15 : 23:07:14
hey guys

i can do a select * from [msdb].[dbo].[sysjobs]

but when i try a linked server
[192.168.0.5].[msdb].[dbo].[sysjobs]

it will only bring up the values of the sysjobs on my current server and not the linked server [192.168.0.5]

Any ideas?

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2012-08-16 : 04:18:59
try
exec ('select * from msdb..sysjobs') at [192.168.0.5]

Are yoou sure that is a remote linked server?

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -