SSIS job fails when csv file is open in Excel


i have ssis job outputs query csv file. each time file generated has filename structure output_<date>.csv if job ran multiple times in 1 dat csv file gets overwritten.

my problem if user happens have file opened in excel , tries run job fail file in use.

is there way prevent this?

the easiest way write file write file location that users shouldn't accessing.  copy/move file location can access.  process fail on copy/move part of process, if want latest file after such failure, can copy hand.


russel loski, mcse data platform/business intelligence twitter: @sqlmovers; blog: www.sqlmovers.com



SQL Server  >  SQL Server Integration Services



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........