944,191 Members | Top Members by Rank

Ad:
  • MS SQL Discussion Thread
  • Unsolved
  • Views: 848
  • MS SQL RSS
Oct 28th, 2009
0

SSIS Permission Problem

Expand Post »
Good Day All

I have a Package created and hosted in a Machine(Theresa) that has SQL 2008 and i have my Development Machine(Vuyiswa) that has IIS and am Debugging from the my machine. i have a ASP.NET 2.0 App and am executing a Package that in another machine. The First thing i did was to share a directory where the Packages are stored when i install the packages and supplied "Everyone","ASP.NET","Vuyiswa" Accounts permissions to to access this share. i can go into the share from the another machine without any problem. i have a code like this in my ASP.NET App

MS SQL Syntax (Toggle Plain Text)
  1. try
  2. {
  3. //Start the SSIS Here
  4. Application app = new Application();
  5. Package package = NULL;
  6. package = app.LoadPackage(@"D:\Program Files\Microsoft SQL Server\100\DTS\Packages\OMEGA\OMEGA.dtsx", NULL);
  7. //@"C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Packages\OMEGA\OMEGA.dtsx", NULL);
  8.  
  9. VARIABLES vars = package.VARIABLES;
  10.  
  11. vars["Time1"].Value = time;
  12.  
  13. vars["Time2"].Value = time;
  14.  
  15. vars["Time3"].Value = time;
  16.  
  17. vars["TTBLTYPE"].Value = THREAD_DATA[1].ToString();
  18.  
  19. //package.Connections["SQLNCLI10.1"].ConnectionString = obj.GetConnectionString(THREAD_DATA[0].ToString());
  20. //Excute Package
  21. Microsoft.SqlServer.Dts.Runtime.DTSExecResult results = package.Execute();
  22.  
  23. IF (results == Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure)
  24. {
  25. foreach (Microsoft.SqlServer.Dts.Runtime.DtsError local_DtsError IN package.Errors)
  26. {
  27.  
  28. Console.WriteLine("Package Execution results: {0}", local_DtsError.Description.ToString());
  29. Console.WriteLine();
  30. }
  31. }
  32.  
  33. }
  34. catch (DtsException ex)
  35. {
  36. Exception = ex.Message;
  37. }

This execute Fine until the

MS SQL Syntax (Toggle Plain Text)
  1. Microsoft.SqlServer.Dts.Runtime.DTSExecResult results = package.Execute();

it does not stop here , but i trap it here

MS SQL Syntax (Toggle Plain Text)
  1. IF (results == Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure)



and the Error am Getting is

"SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D.\r\nAn OLE DB record is available. Source:\"Microsoft SQL Server Native Client 10.0" Hresult: 0x80040E4D Description: "Login failed for user 'sa'

On my Package i use the "sa" credentials and my Protection Level is "Dont Save Sensative"

Thank you


Vuyiswa Maseko
Similar Threads
Reputation Points: 31
Solved Threads: 14
Posting Whiz
vuyiswamb is offline Offline
310 posts
since Mar 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MS SQL Forum Timeline: Sql Query
Next Thread in MS SQL Forum Timeline: Connection Strings to network.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC