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
 DTS-Package

Author  Topic 

shakilhyd
Starting Member

16 Posts

Posted - 2008-07-05 : 07:47:30
I run a report weekly on Monday. There is a spreadsheet in which I change the Startdate and enddate only. Suppose I am running report on Monday 07, 2008. I will put startdate as 06/30/2008 and Enddate will be 07/07/2008. After putting the date I run the executable file which is looking data from spreadsheet and I get the result in text format.
I just want to automate the spreadsheet to avoid weekly input data of startdate and enddate. My question is how can I create DTS-package so that when I run the DTS-package, automatically change the startdate and enddate and run the executable file.

Spreadsheet name is: WeeklyMSfile.xls
Executable file name is : WeeklyMS.exe

Thanks.

shakilhyd
Starting Member

16 Posts

Posted - 2008-07-05 : 07:55:59
I run a report weekly on Monday. There is a spreadsheet in which I change the Startdate and enddate only in the WeeklyMSfile.xls and worksheet is Weekly and column are A1 and A2. Suppose I am running report on Monday 07, 2008. I will put startdate as 06/30/2008 and Enddate will be 07/07/2008. After putting the date I run the executable file which is looking data from spreadsheet and I get the result in text format.
I just want to automate the spreadsheet to avoid weekly input data of startdate and enddate. My question is how can I create DTS-package so that when I run the DTS-package, automatically change the startdate and enddate and run the executable file.

Spreadsheet name is: WeeklyMSfile.xls
Executable file name is : WeeklyMS.exe

Thanks.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-07-05 : 23:35:54
Maybe use activex in dts?
Go to Top of Page

shakilhyd
Starting Member

16 Posts

Posted - 2008-07-06 : 00:36:11
Can anybody help me in my problem, as described above.
Thanks.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-07-06 : 13:26:47
Checked sqldts.com?
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-07-07 : 02:27:37
use dtsrun and call it using xp_cmdshell passing values of parameters for start and end date

http://sql-server-performance.com/Community/forums/t/19064.aspx
Go to Top of Page

svicky9
Posting Yak Master

232 Posts

Posted - 2008-07-07 : 04:17:54
If there is nothing else in the Spreadsheet except the StartDate and EndDate , I recommend better use a Procedure that has parameters as getdate() - 7 and getdate() and pass the parameters to the exe file

Vic

http://vicdba.blogspot.com
Go to Top of Page
   

- Advertisement -