dbTalk Databases Forums  

Urgent: File Attributes then import

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


Discuss Urgent: File Attributes then import in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jason @ SCA
 
Posts: n/a

Default Urgent: File Attributes then import - 07-25-2006 , 10:54 AM






In SQL 2005, what's the best method to import a file(via an SSIS package or
DTS
that would have a schedule) if that file:
1) Exists
2) Is not empty
3) Is New (and by new that would be newer than 3 days old)

We previously had an activeX script that ran but took advantage of
xp_getfiledetails but that doesn't exist in sql 2005 anymore. Is there an
easy replacement to simply find the attributes of a file in 2005 and then
import based on the date, size, etc?!?

Any help in this would be greatly appreciated.

Thanks,

Jason



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Urgent: File Attributes then import - 07-25-2006 , 01:15 PM






FSO would still be a good way to get details about files.

Allan



"Jason @ SCA" <jason.grossman (AT) scf (DOT) sk.ca> wrote

Quote:
In SQL 2005, what's the best method to import a file(via an SSIS package
or DTS
that would have a schedule) if that file:
1) Exists
2) Is not empty
3) Is New (and by new that would be newer than 3 days old)

We previously had an activeX script that ran but took advantage of
xp_getfiledetails but that doesn't exist in sql 2005 anymore. Is there an
easy replacement to simply find the attributes of a file in 2005 and then
import based on the date, size, etc?!?

Any help in this would be greatly appreciated.

Thanks,

Jason




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.