Link to home
Start Free TrialLog in
Avatar of gradu
gradu

asked on

DTS export to excel

I vae an DTS package (SQL 200)) which exports data to a excel file. It;s all fine when I run it from QL server, but when ran from webpage there is no data exported.
Any iddeas!?
Avatar of tigin44
tigin44
Flag of Türkiye image

does the dts runtime package "dtexec" installed on your web server.
do the account under you call the package have the enough privilages t execute succesfully?
Avatar of gradu
gradu

ASKER

When I Connect to pubs db on the same server, it works.
Avatar of gradu

ASKER

correction. it doesnt work for any db.
Avatar of lcohan
For "(SQL 200))" which IO assume is SQL 2000 as you have DTS not DTSX you need DTSRUN as DTEXEC wasn't there at the time and also you need the DTS package on the SQL Box from where the web page is calling it. You should look for access rights to that server.folder.package for the user that hits the web page.

"The dtsrun utility executes a package created using Data Transformation Services (DTS). The DTS package can be stored in the Microsoft® SQL Server™ msdb database, a COM-structured storage file, or SQL Server Meta Data Services."

http://msdn.microsoft.com/en-us/library/aa224467(v=sql.80).aspx
It sounds like the SQL Server account does not have access to all the resources it needs.  In other words the startup account for SQL Server more than likely cannot create the Excel spreadsheet.

Unfortunately, you have not provided sufficient information, so the best we can do is hazard a guess.
Avatar of gradu

ASKER

I have the db on one server, the weserver on a different server and the excel file will be created on a different server.

When ran from SQL server, everything works well. When from from a aspx page it creates the excel file and the workbook inside the excell file, but there is no data.
ASKER CERTIFIED SOLUTION
Avatar of lcohan
lcohan
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gradu

ASKER

Thanks. I had to change the scurity so webserver has access to sql server.