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
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 importing .csv files to a table using a stored procedure

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-07-13 : 07:47:51
Luis writes "I receive a .csv file with many rows and 3 columns:
-Name, Time and Date.

Now I want to import it to an existing table, can I use a stored procedure to merge Time and Date columns and import the values to an existing table that as 3 columns (ID, Name, DateTime) or should I use another aproach?

Best,
Luis"

jimjamjo
Starting Member

10 Posts

Posted - 2005-07-13 : 10:18:19
try bulk import to a temp table with char cols and then insert the temp table data into your main table with a date cast on the date and time columns merged
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2005-07-14 : 00:43:06
yes you can do that,

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=52263

--------------------
keeping it simple...
Go to Top of Page
   

- Advertisement -