dbTalk Databases Forums  

Managing Multiple Excel incoming files?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Managing Multiple Excel incoming files? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Eliezer Figueroa
 
Posts: n/a

Default Managing Multiple Excel incoming files? - 01-23-2004 , 03:00 PM






Managing Multiple Excel incoming files?


I have this situation. I have a client which have several locations they
work primary with excel forms and they are thinking in doing reports with
them. What they want is to import those Excel files into SQL Server for
later using crystal reports or maybe asp.net for reporting. Those files
will come every week from diferent locations then go to SQL Server and then
they should be stored in a folder in the server for backup. So this means
that i have to deal with the importing but also with the file naming. This
is because they want the reports to be date based. So i have to ask them to
include the date as part of the file name or changing the file name after
procesing the file if I want to store them all in the same folder after
procesing.

So the real question is how do I deal with multiple file in regular basis
bye changing the name of the file or enforcing they send me the file with
the date already included. If the recomendation is the second one how can i
tell the system to change the files after the procesing?

Is there any easy way or tool to achive this? is there any way i can
configure DTS to do that?


Eliezer


Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Managing Multiple Excel incoming files? - 01-23-2004 , 03:28 PM






In message <Xns9479AC80857B4efigueroapropointcom (AT) 216 (DOT) 196.97.132>,
Eliezer Figueroa <efigueroa (AT) propoint (DOT) com.do> writes
Quote:
Managing Multiple Excel incoming files?


I have this situation. I have a client which have several locations they
work primary with excel forms and they are thinking in doing reports with
them. What they want is to import those Excel files into SQL Server for
later using crystal reports or maybe asp.net for reporting. Those files
will come every week from diferent locations then go to SQL Server and then
they should be stored in a folder in the server for backup. So this means
that i have to deal with the importing but also with the file naming. This
is because they want the reports to be date based. So i have to ask them to
include the date as part of the file name or changing the file name after
procesing the file if I want to store them all in the same folder after
procesing.

So the real question is how do I deal with multiple file in regular basis
bye changing the name of the file or enforcing they send me the file with
the date already included. If the recomendation is the second one how can i
tell the system to change the files after the procesing?

Is there any easy way or tool to achive this? is there any way i can
configure DTS to do that?


Eliezer


You can derive filenames based on dates, and change connections all
through ActiveX Script, e.g.

How can I change the filename for a text file connection?
(http://www.sqldts.com/default.aspx?200)

You can also manage files through script-

Working with files and the FileSystemObject
(http://www.sqldts.com/default.aspx?292)
--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #3  
Old   
Eliezer Figueroa
 
Posts: n/a

Default Re: Managing Multiple Excel incoming files? - 01-26-2004 , 09:29 AM



Thaks a lot . Great Site !

Eliezer

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.