dbTalk Databases Forums  

Creating Excel spreadsheet in DTS and Error on send mail

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


Discuss Creating Excel spreadsheet in DTS and Error on send mail in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brad Scott
 
Posts: n/a

Default Creating Excel spreadsheet in DTS and Error on send mail - 06-01-2005 , 02:36 PM






I am having an issue with exporting a multiple sheet workbook created through
the DTS wizard, and getting it to attach to an email.

The DTS will export successfully. When it comes to the send mail function,
I receive an error associated with the file is not at the location specified.
The file is there, however, it cannot be accessed because the Jet driver has
the file opened exclusively.

Once the process has failed, I can go back to the DTS and execute the send
mail function and it works successfully.

It does not matter if I am using my desktop or the SQL server console.

I need to know how to close the connection in order to send.

I am using SQL Server 2000 SP3.

Thanks, Brad

Reply With Quote
  #2  
Old   
Helge C. Rutz
 
Posts: n/a

Default Re: Creating Excel spreadsheet in DTS and Error on send mail - 06-01-2005 , 02:51 PM






Hi Brad,

"Brad Scott" wrote:
Quote:
I am having an issue with exporting a multiple sheet workbook created
through
the DTS wizard, and getting it to attach to an email.
The DTS will export successfully. When it comes to the send mail
function, I receive an error associated with the file is not at the
location specified. The file is there, however, it cannot be accessed
because the Jet driver has the file opened exclusively.
Once the process has failed, I can go back to the DTS and execute the
send mail function and it works successfully.
It does not matter if I am using my desktop or the SQL server console.
I need to know how to close the connection in order to send.
I am using SQL Server 2000 SP3.
there is a workflow property of the transform task that lets the connection
close on completion.
When you use the wizard to create an export, this option is disabled by
default, because there can be independent exports to the same connection.
To solve this, you have to define a workflow for the exports, and define
the close connection option for the last export transform task.

Helge




Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Creating Excel spreadsheet in DTS and Error on send mail - 06-01-2005 , 02:53 PM



On the workflow properties of the DataPump task there is a "Close
Connection On Completion" option.

If you check that dos it work?

If not and running this as a scheduled job then simply create another
step after the export and use that to do the sending of the mail

Allan

"Brad Scott" <BradScott (AT) discussions (DOT) microsoft.com> wrote


Quote:
I am having an issue with exporting a multiple sheet workbook created through
the DTS wizard, and getting it to attach to an email.

The DTS will export successfully. When it comes to the send mail function,
I receive an error associated with the file is not at the location specified.
The file is there, however, it cannot be accessed because the Jet driver has
the file opened exclusively.

Once the process has failed, I can go back to the DTS and execute the send
mail function and it works successfully.

It does not matter if I am using my desktop or the SQL server console.

I need to know how to close the connection in order to send.

I am using SQL Server 2000 SP3.

Thanks, Brad


Reply With Quote
  #4  
Old   
Brad Scott
 
Posts: n/a

Default Re: Creating Excel spreadsheet in DTS and Error on send mail - 06-01-2005 , 03:11 PM



Thanks, Brad.

"Allan Mitchell" wrote:

Quote:
On the workflow properties of the DataPump task there is a "Close
Connection On Completion" option.

If you check that dos it work?

If not and running this as a scheduled job then simply create another
step after the export and use that to do the sending of the mail

Allan

"Brad Scott" <BradScott (AT) discussions (DOT) microsoft.com> wrote in message
news:BradScott (AT) discussions (DOT) microsoft.com:

I am having an issue with exporting a multiple sheet workbook created through
the DTS wizard, and getting it to attach to an email.

The DTS will export successfully. When it comes to the send mail function,
I receive an error associated with the file is not at the location specified.
The file is there, however, it cannot be accessed because the Jet driver has
the file opened exclusively.

Once the process has failed, I can go back to the DTS and execute the send
mail function and it works successfully.

It does not matter if I am using my desktop or the SQL server console.

I need to know how to close the connection in order to send.

I am using SQL Server 2000 SP3.

Thanks, Brad



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.