dbTalk Databases Forums  

Re: how to insert into excel

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


Discuss Re: how to insert into excel in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: how to insert into excel - 11-05-2003 , 06:56 PM






It sounds like maybe you are using the Data Driven Query
Task? All you need to do is have the SQL Server connection
for the source, the Excel connection file for the
destination. Then you can use a transform data task from SQL
Server connection to the Excel connection. In the transform
data task, just define the sql statement for the data you
want to go to the Excel file. So you end up with just a
select that goes to the Excel file.

-Sue

On Tue, 4 Nov 2003 14:19:57 -0800, "Jen"
<anonymous (AT) discussions (DOT) microsoft.com> wrote:

Quote:
Hi, I have a dts to create a table in excel connection.
then there is a task to copy the data form db table to the
excel. I specify the db table as SourceObject name,select
statement as the SourceSQLStatement, excel table as
DestinationObjectName, the trouble is how to write the
DestinationSQLStatement, I have "insert into results" , it
complains the syntax error in Insert Into statement.

Thanks


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.