2 replies
by cecil1982 Accepted solution
by tony hopkinson Accepted solution
e.g. If they simply appeared in a specific directory.
Yoi could use XP_CmdShell to do a Dir *.xls into a temporary table #FileToProcess and go from there.
However by default shell access is turned off, be very careful if you turn it back on.
It means any command line can be executed by a sql statment, given the service account has permission to accesit and it's files.
Also the account running the job needs permission(possibly over the network) to access that directory.
Another way is to write a wee program / batch file that will do the dir and then call an SSIS job with a the filename as a parameter.
Another possibility might be to put an on close macro in the worksheet that does an insert into a FileToPrcess Table. Then schedule a job to process it's contents.
Put a lot of belt and braces in this, particularly coping with sending the same file again, or SSIS catching it mid change.
Hope there's some clues in here for you.
This discussion is closed to new replies.
Trending Software posts
Sort by Trending