SSIS Permission Problem

Please support our MS SQL advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2007
Posts: 155
Reputation: vuyiswamb is an unknown quantity at this point 
Solved Threads: 5
vuyiswamb's Avatar
vuyiswamb vuyiswamb is offline Offline
Junior Poster

SSIS Permission Problem

 
0
  #1
33 Days Ago
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

  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

  1. Microsoft.SqlServer.Dts.Runtime.DTSExecResult results = package.Execute();

it does not stop here , but i trap it here

  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
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC