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
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 Run a exe from sql agent

Author  Topic 

gmdegre
Starting Member

1 Post

Posted - 2012-06-19 : 06:05:27
Hi, i want to run a exe program using the SQL Agent.
I have a procedure that insert legacy data into tables.
When finnished i have to run my backoffice to import the new data.
I want to make it automatic but i can find how to do it with SQL Agent.
I had try to use xp_cmdshell but is not working

Thanks in advance

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2012-06-19 : 06:36:02
Why isn't xp_cmdshell working - is it enabled and do you have permission?
How about an operating system command step?

==========================================
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

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-06-19 : 19:07:14
whats the account you're using to execute xp_cmdshell? does it have required permissions?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2012-06-20 : 01:50:02
Can you confirm xp_cmdshell is enabled . Check sp_configure.
Confirm the account executing the SQL Server Agent job has permissions to execute the xp_cmdshell

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
   

- Advertisement -