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)
 Converting a Text String to Date Format in DTS

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-11-18 : 11:14:43
Alicia Perry writes "I am currently working on a project in which I need to import a text file into SQL Server 7. And one of the columns is in the following format:

20011003T153103

I need to convert this data (prior to being imported) into a datetime format that SQL Server will like.

I have created a temporary table and set the target field to:

Name:

SessionStartDateTime datetime 8

How would I code my DTS Import Function so that it will convert the import string to a datetime format?

Thanks for your help!

Alicia Perry"
   

- Advertisement -