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
 General SQL Server Forums
 New to SQL Server Programming
 Get SQL to update an Excel file

Author  Topic 

Topaz
Posting Yak Master

199 Posts

Posted - 2010-10-12 : 09:17:03
My SQL database is used primarily for email marketing purposes. It has over 1 million records and is split up into small sized batches of around 3000 contacts.

I send out around 15 batches a day and analyse each batch performance individually by running 3 separate queries on each batch number and then record the results in an excel file.

What I would like to know is this. Is there any way I can get SQL to automatically populate the excel file 1 day after the batch has been sent?

JT

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2010-10-12 : 09:59:23
Yes.

1) Use SSIS
2) Use a custom script. See http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926


N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-10-17 : 02:55:33
you might have to configure a sql agent job using either of above methods to make this happen automatically every day.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -