dbTalk Databases Forums  

Export to Excel - File not created

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Export to Excel - File not created in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff Reese
 
Posts: n/a

Default Export to Excel - File not created - 10-26-2006 , 08:31 PM






I'm using SQL Server 2005. I've built a DTS. Essentially it does this:

Create a table and insert data
Delete an excel file
Export the table to Excel

In BI Dev studio, the package runs just fine and everything works perfectly.

However, when I run it with the SQL Server Agent, the table is created fine,
however the Delete Excel file step and the Export to Excel step don't work.

I thought maybe this was a permissions issue, but I've tried everything I
can think of.

Any ideas of what may be causing this?

Thanks....
--
Jeff

Reply With Quote
  #2  
Old   
Arnie Rowland
 
Posts: n/a

Default Re: Export to Excel - File not created - 10-27-2006 , 02:32 AM






It sounds like an OS level permission issue.

Does the network account that SQL Agent runs under have file create/delete
permissions in the destination folder?

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to the
top yourself.
- H. Norman Schwarzkopf


"Jeff Reese" <JeffReese (AT) discussions (DOT) microsoft.com> wrote

Quote:
I'm using SQL Server 2005. I've built a DTS. Essentially it does this:

Create a table and insert data
Delete an excel file
Export the table to Excel

In BI Dev studio, the package runs just fine and everything works
perfectly.

However, when I run it with the SQL Server Agent, the table is created
fine,
however the Delete Excel file step and the Export to Excel step don't
work.

I thought maybe this was a permissions issue, but I've tried everything I
can think of.

Any ideas of what may be causing this?

Thanks....
--
Jeff



Reply With Quote
  #3  
Old   
Jeff Reese
 
Posts: n/a

Default Re: Export to Excel - File not created - 10-27-2006 , 11:04 AM



Thanks for the reply.

Yes, the account SQL Server Agent runs under has full access to the folder.
The agent is running using my account (not the Local System account). My
account has full access to the destination folder.
--
Jeff


"Arnie Rowland" wrote:

Quote:
It sounds like an OS level permission issue.

Does the network account that SQL Agent runs under have file create/delete
permissions in the destination folder?

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to the
top yourself.
- H. Norman Schwarzkopf


"Jeff Reese" <JeffReese (AT) discussions (DOT) microsoft.com> wrote in message
news5277C48-30F8-4EBB-A2F8-B2E80EA69360 (AT) microsoft (DOT) com...
I'm using SQL Server 2005. I've built a DTS. Essentially it does this:

Create a table and insert data
Delete an excel file
Export the table to Excel

In BI Dev studio, the package runs just fine and everything works
perfectly.

However, when I run it with the SQL Server Agent, the table is created
fine,
however the Delete Excel file step and the Export to Excel step don't
work.

I thought maybe this was a permissions issue, but I've tried everything I
can think of.

Any ideas of what may be causing this?

Thanks....
--
Jeff




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.