dbTalk Databases Forums  

Import date field to table

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


Discuss Import date field to table in the microsoft.public.sqlserver.dts forum.



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

Default Import date field to table - 12-21-2003 , 09:03 PM






Dear,

I want to capture a date field from CSV file to the table
(the CSV file have one date field only). But the table data
(another field) import from another CSV file. How can i
import the data field from CSV file and fit in the table?

Many Thanks
John

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

Default Re: Import date field to table - 12-22-2003 , 01:25 AM






OK

From your explanation I read that you have 2 text files. One contains a
data that you want and the rest of the data comes from the other file.

They must be joined somehow by key otherwise how do you know which date goes
with which row?

Import the text files into their own working tables. Use TSQL then to
manipulate these tables

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



"John" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Dear,

I want to capture a date field from CSV file to the table
(the CSV file have one date field only). But the table data
(another field) import from another CSV file. How can i
import the data field from CSV file and fit in the table?

Many Thanks
John



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.