Solved

Urgent:  DTS package problem - Permission Denied

Posted on 2004-08-25
7
257 Views
Last Modified: 2013-11-30
hi experts:

I created a DTS package in SQL Server 2000 to import simple CSV file.  It works in sql server.  Then I saved the DTS package as VB file and edit it by adding a form and a button to execute it in VB.  It works perfectly in VB.  Then finally I copy and paste the codes into a new ActiveX DLL project to generate a COM object so I can use it in my ASP pages.  

Now here's the problem:  
when I run the ASP page to execute the DTS COM, I get the "Permission Denied" error.
I know the DLL register correctly because the 1st debug statement in the COM object shows.  It is the main function where it execute the DTS package gets the "permission denied" message.  So what did i missed?  how can i fix the problem?  any help will be greatly appreciated!

kingsfan
0
Comment
Question by:kingsfan76
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 46

Accepted Solution

by:
fritz_the_blank earned 250 total points
ID: 11898048
Make sure that the IUSR_ and IWAM_ accounts have the proper permissions.

FtB
0
 
LVL 31

Assisted Solution

by:alorentz
alorentz earned 250 total points
ID: 11898075
To add, IUSR_ and IWAM_ accounts have the proper permissions ON THE SQL SERVER AND THE DLL.
0
 
LVL 31

Expert Comment

by:alorentz
ID: 11898099
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 12

Author Comment

by:kingsfan76
ID: 11898764
I had the dll security set correctly.
I added sercurity access for the file "dtspkg.dll" (which is the MS DTSpackage object library referenced in the VB COM object).  now the "permission denied" error is gone, but i get this new error:

>>> Automation error The specified module could not be found.


this error line is on
>> Set goPackage = goPackageOld
in COM object

the datatype for them are declared as the following:
>>Public goPackageOld As New DTS.Package
>>Public goPackage As DTS.Package2


0
 
LVL 12

Author Comment

by:kingsfan76
ID: 12147865
i couldn't get DTS with COM to work in our https server.  Tried using ActiveX also, it works within the server but would not work from outside.  Ended up using ADODB to read the xls and CSV files (had to do xls because Excel would not produce correct CSV files (No quotes on text string).

anyway i think permission is probably the problem... thanks for the response and i'll split the points with a grade of B, hope you guys don't mind

kingsfan
0
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 12147873
That sounds fine. Good luck with your project,

FtB
0
 
LVL 31

Expert Comment

by:alorentz
ID: 12147926
A "B".....ruined my night! :)

Good luck!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Display Date and Time 7 48
Call to SQL server times out 5 55
SQL Simple Query Taking a Very Long Time 11 36
TDE for SQL Web Edition 1 39
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question