dbTalk Databases Forums  

SQLServer -> EXCEL DTS. Destination Table problem

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


Discuss SQLServer -> EXCEL DTS. Destination Table problem in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sreejith Ram
 
Posts: n/a

Default SQLServer -> EXCEL DTS. Destination Table problem - 10-03-2005 , 05:01 PM






Hello Gurus,

Looking for help on a problem which i need to resolve immediatly..Any help
is appreciated .. Sorry if this post is too long..Trying to put as much info
I can.

I have created a DTS package to export some data from SQL Server to an EXCEL
file. The problem I face is that the DESTINATION table need to be created
every time, it doesnt get saved.

The source data is fetched using an SQL Query. (This query works fine and I
could see the data when I preview from SOURCE tab. At the destination
screen, it prompted me to create a 'NEW TABLE' and I did. Then I clicked SAVE
and executed the DTS it worked fine.

If I close every thing and come back later and execute the package, it fails
because "Microsoft Jet database engine could not find object 'New_Table'
Make sure this object exists . blah blah .... "

If I click the destination tab again and create the table, it would work
agian.

I got 2 DTS packages which export data to excel from SQL server table and
facing this issue with both.

Any help is ppreciated.. thanks in advance



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

Default Re: SQLServer -> EXCEL DTS. Destination Table problem - 10-03-2005 , 05:38 PM






And what does the Excel Spreadsheet look like? Have you looked at that?

"Sreejith Ram" <SreejithRam (AT) discussions (DOT) microsoft.com> wrote


Quote:
Hello Gurus,

Looking for help on a problem which i need to resolve immediatly..Any
help
is appreciated .. Sorry if this post is too long..Trying to put as much
info
I can.

I have created a DTS package to export some data from SQL Server to an
EXCEL
file. The problem I face is that the DESTINATION table need to be
created
every time, it doesnt get saved.

The source data is fetched using an SQL Query. (This query works fine
and I
could see the data when I preview from SOURCE tab. At the destination
screen, it prompted me to create a 'NEW TABLE' and I did. Then I clicked
SAVE
and executed the DTS it worked fine.

If I close every thing and come back later and execute the package, it
fails
because "Microsoft Jet database engine could not find object 'New_Table'
Make sure this object exists . blah blah .... "

If I click the destination tab again and create the table, it would work
agian.

I got 2 DTS packages which export data to excel from SQL server table
and
facing this issue with both.

Any help is ppreciated.. thanks in advance


Reply With Quote
  #3  
Old   
sreejith.ram@gmail.com
 
Posts: n/a

Default Re: SQLServer -> EXCEL DTS. Destination Table problem - 10-03-2005 , 09:19 PM



Yes i looked at spread sheet. forgot to mention, i have a template
file(with header row) and this transformation should add the result to
the template.

When DTS fails, the template file remains with header row and no data
records.

When I click "Create New Table" on destination tab the template file
get appended with the result data.

Thanks for dropping in..

Allan Mitchell wrote:
Quote:
And what does the Excel Spreadsheet look like? Have you looked at that?

"Sreejith Ram" <SreejithRam (AT) discussions (DOT) microsoft.com> wrote in message
news:5FD4891D-2FBD-4842-92D3-0C172974D2F4 (AT) microsoft (DOT) com:

Hello Gurus,

Looking for help on a problem which i need to resolve immediatly..Any
help
is appreciated .. Sorry if this post is too long..Trying to put as much
info
I can.

I have created a DTS package to export some data from SQL Server to an
EXCEL
file. The problem I face is that the DESTINATION table need to be
created
every time, it doesnt get saved.

The source data is fetched using an SQL Query. (This query works fine
and I
could see the data when I preview from SOURCE tab. At the destination
screen, it prompted me to create a 'NEW TABLE' and I did. Then I clicked
SAVE
and executed the DTS it worked fine.

If I close every thing and come back later and execute the package, it
fails
because "Microsoft Jet database engine could not find object 'New_Table'
Make sure this object exists . blah blah .... "

If I click the destination tab again and create the table, it would work
agian.

I got 2 DTS packages which export data to excel from SQL server table
and
facing this issue with both.

Any help is ppreciated.. thanks in advance


Reply With Quote
  #4  
Old   
sreejith.ram@gmail.com
 
Posts: n/a

Default Re: SQLServer -> EXCEL DTS. Destination Table problem - 10-04-2005 , 09:03 AM



After playing around for some mroe time, I found the reason for the
error.

The records are being copied to a template file (XLS) and the Workbook
name is Sheet1. When I renamed the table name at "Destination" tab to
Sheet1, the package started working fine..

This was a newbie error! Hopefully this post helps other newbies...

Thanks for the suggestions and comments...


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.