April 19, 2007 at 2:23 pm
DECLARE @ProgramToRun VARCHAR(255)
EXEC sp_oamethod @obj, @ProgramToRun
EXEC sp_oadestroy @obj
DECLARE @ProgramToRun VARCHAR(255)
EXEC sp_oamethod @obj, @ProgramToRun
EXEC sp_oadestroy @obj
DECLARE @ProgramToRun VARCHAR(255)
EXEC sp_oamethod @obj, @ProgramToRun
EXEC sp_oadestroy @obj
April 19, 2007 at 4:37 pm
Does the account that SQL Server is running under have permission to the file on the other server?
April 20, 2007 at 6:26 am
David,
Thank you so much for responding, and I apologize in advance for the ignorance I'm about to display. I don't know how to tell what account SQL Server is running under (I'm just a developer), and our network expert tells me 'I don't know SQL', and of course, we don't have a DBA. (I hope Sergiy isn't reading this; I know my posts are going to cause him to have a stroke one day.)
So if you'd be willing to tell me how to find out what account SQL Server is running under (do I look in EM, or Services?), and then where to check on the destination server for that account, I promise never to ask those two questions again.
By asking about permissions (which was my first thought), you seem to be implying that referencing a remote server in this manner is possible, yet in every site I could find on the web, I never saw that syntax used, everything used drive names.
I really appreciate your help on this.
Mattie
April 20, 2007 at 8:54 am
![]() | ...what account SQL Server is running under... |
In EM
Locate the server
Right click on the server
Select properties
Select the Security tab
Startup service account will tell you which account sql is running under
If System account is selected then you will no be able to access the network, otherwise check permissions as David stated.
Also make sure that the program does not produce any prompts etc as this may cause the job to pause (not sure on this)
Far away is close at hand in the images of elsewhere.
Anon.
April 20, 2007 at 10:10 am
Hi David, thanks for responding.
There is a specific startup service account, it is not the system account. (For those of you following along at home, be aware that to find this out, you have to view this tab from the server. It does not display at another machine.)
When I check the security on the executable (inherited from the folder), it shows that same user account has full control, and just to be sure, I gave full control to Everyone. No difference. Is there somewhere else I should be looking on the server that has the executable. Is there another file (wscript.exe?) that needs permission. I tried giving Full Control to Everyone on wscript.exe, and that didn't help. (I have since removed Full Control.)
There aren't any prompts, so that's not an issue. The code runs just fine when it runs from the server the database is on, and I use a drive letter in the path.
Mattie
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy