SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

cidr
Posting Yak Master

United Kingdom
203 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

visakh16
Very Important crosS Applying yaK Herder

India
52317 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  
 New 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.03 seconds. Powered By: Snitz Forums 2000