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.
Author |
Topic |
qman
Constraint Violating Yak Guru
442 Posts |
Posted - 2014-01-06 : 09:58:00
|
I have a C# script task which references an external XML file which lives in the same .SLN project folder.I am able to find the file and use its contents when running within Visual Studio 2008. When I attempt to run the deployed package via SQL Server Studio, my package fails on the task which reads the XML file. I tried referencing the XML file using both examples below....Any ideas what's causing this?doc.Load("E:\\SSIS_Source_Files\\Test_Data\\Test_Data\\myDoc.xml"); doc.Load("myDoc.xml"); Thanks! |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2014-01-07 : 01:09:29
|
you need to put file in a shared folder and should use UNC path to reference it like//machinename/drive$/....Also if you're executing it from sql job, it gets run under service account. In that case, you should also give access to folder for service account for it to read the file.------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
qman
Constraint Violating Yak Guru
442 Posts |
Posted - 2014-01-07 : 07:32:28
|
That did the trick, once again thanks! |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2014-01-08 : 06:04:30
|
welcome------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
|
|
|