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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Excel import automation
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

United Kingdom
207 Posts

Posted - 10/01/2009 :  07:21:40  Show Profile  Reply with Quote
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

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 10/01/2009 :  15:58:09  Show Profile  Reply with Quote
one method of doing this is by using dts transform data task using oledb source and excel destination.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000