Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Job/Maintenance plan is not giving the same result set.

$
0
0

Hi all,

 I have a script which lists out logins with a sysAdmin right. And i created a job that runs the script every week. When i run the script manually on the  management studio, it gives me the expected list of logins but when the scheduled job runs(the same script), it only lists one login with sysAdmin right. What am i missing here?

The other option I tried was that running the script by creating a maintenance plan using 'Execute T-SQL Statement Task' but same result came up as the regular job. 

Any ideas?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>