When I run the following script, ----exec sp_configure 'show advanced options', 1;reconfigure;exec sp_configure 'Ad Hoc Distributed Queries', 1;reconfigure;SELECT * FROM OPENROWSET('SQLNCLI', 'Server=servername;Database=msdb;Uid=user;Pwd=pass;', 'SET FMTONLY OFF; EXEC sp_add_jobschedule @job_name = ''job_name'', @name = ''name'', @freq_type = 1, @freq_interval = 0, @active_start_date = 20130101, @active_start_time = 10000')----I got this error message, Msg 7357, Level 16, State 2, Line 1Cannot process the object "SET FMTONLY OFF; EXEC sp_add_jobschedule @job_name = 'job_name', @name = 'name', @freq_type = 1, @freq_interval = 0, @active_start_date = 20130101, @active_start_time = 10000". The OLE DB provider "SQLNCLI10" for linked server "(null)" indicates that either the object has no columns or the current user does not have permissions on that object.But, the stored procedure actually works. When I use the same way just change sp_add_jobschedule top sp_help_jobschedule, I see the job just added. The error message should not display. The SQL Server is 2008 R2 Enterprise Edition 10.50.4263 x64
Product Language
Version
Category
Operating System
Operating System Language
Steps to Reproduce
Actual Results
Expected Results
Platform
Virtualization