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?