dbTalk Databases Forums  

DTS -- Extracting Data using Date Criteria

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


Discuss DTS -- Extracting Data using Date Criteria in the microsoft.public.sqlserver.dts forum.



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

Default DTS -- Extracting Data using Date Criteria - 07-01-2008 , 12:50 PM






Hello All!

I have a DTS package that includes all records in the database:

'************************************************* *********************
' Visual Basic Transformation Script
' Copy each source column to the
' destination column
'************************************************* ***********************

Function Main()

DTSDestination("ID") = DTSSource("ID")
DTSDestination("DispPos") = DTSSource("DispPos")
DTSDestination("SectorID") = DTSSource("SectorID")
DSDestination("ServerTimeStamp") = DTSSource("ServerTimeStamp")
Main = DTSTransformStat_OK

End Function

The ServerTimeStamp is a date/time column.

If I need to extract all the data for a specific day, (e.g.,
Yesterday) what modification would I need to make to this code?

Any help greatly appreciated!

RBolligner


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.