Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Excel import automation

Author  Topic 

cidr
Posting Yak Master

207 Posts

Posted - 2009-10-01 : 07:21:40
Hi there,

I wonder if anyone can guide me on the right path of doing this.

I have a fairly small dataset that I would like to import into Excel and then email to recipients.

Forgetting the email part just now, at the moment I'm focusing on automating the import to Excel. However, any text fields have to have double quotes around the text. If I do this manually via SQL Server, the quotes will not be pasted along with the text field. I'd have to do this in Excel using another with, for example: =""""&A1&"""" and then drag this down the rows until the bottom row.

is there a way to automate this process from the sql dataset to excel and how would I go about doing it.

Many thanks

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-10-01 : 15:58:09
one method of doing this is by using dts transform data task using oledb source and excel destination.
Go to Top of Page
   

- Advertisement -