Shawn Weisfeld

I find when I talk to myself nobody listens. - Shawn Weisfeld
posts - 352, comments - 144, trackbacks - 34

My Links

News

The views expressed in this blog are mine and mine alone, not that of my employer, Microsoft, or anyone else’s. No warrantee is given for the quality of any material on this site.

Archives

Post Categories

Help with SSIS

UPDATE: it appears to work fine when the physical path to the file is replaced with a file share path (i.e. "\\machine\files\xxx.txt")

I recently posted the following question to the Microsoft Newsgroup. If you have any ideas please post a reply to the Newsgroup. THANKS
http://www.microsoft.com/technet/community/newsgroups/dgbrowser/en-us/default.mspx?dg=microsoft.public.sqlserver.dts&mid=61f557cb-37c7-4be1-91e5-960262653fdd

When executing a SSIS package I get the following error
The file name "D:\xxx.TXT" specified in the connection was not valid.

I am executing my package from a .NET Assembly using "Microsoft.SqlServer.Dts.Runtime"

C# excerpt
Application a = new Application();
Package p = a.LoadPackage("e:\xxx.dtsx", null);
DTSExecResult result = p.Execute();

My package does the following:
1) Executes a TSQL Statement to delete all the data from the table
2) Reads in records from a flat file on the disk (flat file source)
3) Uses Derived columns to add some information to the result set
4) Uses a OLE DB Destination to load that data into a table into SQL Server

The package is created on one computer and executed on another.

It uses integrated authentication to access the SQL Server, the nt account the application is running under has SA permissions in the sql server and is an admin on the windows server. The nt account that the SSIS service is running under is an admin on the windows server. Everyone has full control of the file. (I understand this is not the best thing from a security perspective, but I was trying to eliminate security as a cause of the package not being able to see the flat file on the disk.)

 

Print | posted on Thursday, December 07, 2006 10:25 PM | Filed Under [ C# SQL ]

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 2 and 2 and type the answer here:

Powered by: