dbTalk Databases Forums  

DTS: Converting datatype in the source before import

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


Discuss DTS: Converting datatype in the source before import in the microsoft.public.sqlserver.dts forum.



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

Default DTS: Converting datatype in the source before import - 02-26-2008 , 09:05 AM






Hi, In my source (text file connection) there is a date field but the date
is stored yyyymmdd (20080226)
I need to convert this into a real date 02/26/2008 and then import it into
the sql server database into a datetime field.
I'm a newbie with DTS so very detailed insturctions would be greatly
appreciated. When I just tried having it import into SQL Server I got an
error obviously since the date in the source data is not in a format sql
server will understand




Reply With Quote
  #2  
Old   
Knowledgy
 
Posts: n/a

Default Re: Converting datatype in the source before import - 02-26-2008 , 09:19 PM






I'm not going to get detailed but I'll give you one way to do this. You'll
have to do some research on your own.

Import into a varchar column then use convert to transform and push into
your destination datetime column
--
Sincerely,
John K
Knowledgy Consulting
http://knowledgy.org/

Atlanta's Business Intelligence and Data Warehouse Experts


"Patrick Hill" <phill (AT) nospam_quickcomm (DOT) com> wrote

Quote:
Hi, In my source (text file connection) there is a date field but the date
is stored yyyymmdd (20080226)
I need to convert this into a real date 02/26/2008 and then import it into
the sql server database into a datetime field.
I'm a newbie with DTS so very detailed insturctions would be greatly
appreciated. When I just tried having it import into SQL Server I got an
error obviously since the date in the source data is not in a format sql
server will understand






Reply With Quote
  #3  
Old   
Knowledgy
 
Posts: n/a

Default Re: Converting datatype in the source before import - 02-26-2008 , 09:19 PM



I'm not going to get detailed but I'll give you one way to do this. You'll
have to do some research on your own.

Import into a varchar column then use convert to transform and push into
your destination datetime column
--
Sincerely,
John K
Knowledgy Consulting
http://knowledgy.org/

Atlanta's Business Intelligence and Data Warehouse Experts


"Patrick Hill" <phill (AT) nospam_quickcomm (DOT) com> wrote

Quote:
Hi, In my source (text file connection) there is a date field but the date
is stored yyyymmdd (20080226)
I need to convert this into a real date 02/26/2008 and then import it into
the sql server database into a datetime field.
I'm a newbie with DTS so very detailed insturctions would be greatly
appreciated. When I just tried having it import into SQL Server I got an
error obviously since the date in the source data is not in a format sql
server will understand






Reply With Quote
  #4  
Old   
Knowledgy
 
Posts: n/a

Default Re: Converting datatype in the source before import - 02-26-2008 , 09:19 PM



I'm not going to get detailed but I'll give you one way to do this. You'll
have to do some research on your own.

Import into a varchar column then use convert to transform and push into
your destination datetime column
--
Sincerely,
John K
Knowledgy Consulting
http://knowledgy.org/

Atlanta's Business Intelligence and Data Warehouse Experts


"Patrick Hill" <phill (AT) nospam_quickcomm (DOT) com> wrote

Quote:
Hi, In my source (text file connection) there is a date field but the date
is stored yyyymmdd (20080226)
I need to convert this into a real date 02/26/2008 and then import it into
the sql server database into a datetime field.
I'm a newbie with DTS so very detailed insturctions would be greatly
appreciated. When I just tried having it import into SQL Server I got an
error obviously since the date in the source data is not in a format sql
server will understand






Reply With Quote
  #5  
Old   
Knowledgy
 
Posts: n/a

Default Re: Converting datatype in the source before import - 02-26-2008 , 09:19 PM



I'm not going to get detailed but I'll give you one way to do this. You'll
have to do some research on your own.

Import into a varchar column then use convert to transform and push into
your destination datetime column
--
Sincerely,
John K
Knowledgy Consulting
http://knowledgy.org/

Atlanta's Business Intelligence and Data Warehouse Experts


"Patrick Hill" <phill (AT) nospam_quickcomm (DOT) com> wrote

Quote:
Hi, In my source (text file connection) there is a date field but the date
is stored yyyymmdd (20080226)
I need to convert this into a real date 02/26/2008 and then import it into
the sql server database into a datetime field.
I'm a newbie with DTS so very detailed insturctions would be greatly
appreciated. When I just tried having it import into SQL Server I got an
error obviously since the date in the source data is not in a format sql
server will understand






Reply With Quote
  #6  
Old   
Knowledgy
 
Posts: n/a

Default Re: Converting datatype in the source before import - 02-26-2008 , 09:19 PM



I'm not going to get detailed but I'll give you one way to do this. You'll
have to do some research on your own.

Import into a varchar column then use convert to transform and push into
your destination datetime column
--
Sincerely,
John K
Knowledgy Consulting
http://knowledgy.org/

Atlanta's Business Intelligence and Data Warehouse Experts


"Patrick Hill" <phill (AT) nospam_quickcomm (DOT) com> wrote

Quote:
Hi, In my source (text file connection) there is a date field but the date
is stored yyyymmdd (20080226)
I need to convert this into a real date 02/26/2008 and then import it into
the sql server database into a datetime field.
I'm a newbie with DTS so very detailed insturctions would be greatly
appreciated. When I just tried having it import into SQL Server I got an
error obviously since the date in the source data is not in a format sql
server will understand






Reply With Quote
  #7  
Old   
Knowledgy
 
Posts: n/a

Default Re: Converting datatype in the source before import - 02-26-2008 , 09:19 PM



I'm not going to get detailed but I'll give you one way to do this. You'll
have to do some research on your own.

Import into a varchar column then use convert to transform and push into
your destination datetime column
--
Sincerely,
John K
Knowledgy Consulting
http://knowledgy.org/

Atlanta's Business Intelligence and Data Warehouse Experts


"Patrick Hill" <phill (AT) nospam_quickcomm (DOT) com> wrote

Quote:
Hi, In my source (text file connection) there is a date field but the date
is stored yyyymmdd (20080226)
I need to convert this into a real date 02/26/2008 and then import it into
the sql server database into a datetime field.
I'm a newbie with DTS so very detailed insturctions would be greatly
appreciated. When I just tried having it import into SQL Server I got an
error obviously since the date in the source data is not in a format sql
server will understand






Reply With Quote
  #8  
Old   
Knowledgy
 
Posts: n/a

Default Re: Converting datatype in the source before import - 02-26-2008 , 09:19 PM



I'm not going to get detailed but I'll give you one way to do this. You'll
have to do some research on your own.

Import into a varchar column then use convert to transform and push into
your destination datetime column
--
Sincerely,
John K
Knowledgy Consulting
http://knowledgy.org/

Atlanta's Business Intelligence and Data Warehouse Experts


"Patrick Hill" <phill (AT) nospam_quickcomm (DOT) com> wrote

Quote:
Hi, In my source (text file connection) there is a date field but the date
is stored yyyymmdd (20080226)
I need to convert this into a real date 02/26/2008 and then import it into
the sql server database into a datetime field.
I'm a newbie with DTS so very detailed insturctions would be greatly
appreciated. When I just tried having it import into SQL Server I got an
error obviously since the date in the source data is not in a format sql
server will understand






Reply With Quote
  #9  
Old   
Knowledgy
 
Posts: n/a

Default Re: Converting datatype in the source before import - 02-26-2008 , 09:19 PM



I'm not going to get detailed but I'll give you one way to do this. You'll
have to do some research on your own.

Import into a varchar column then use convert to transform and push into
your destination datetime column
--
Sincerely,
John K
Knowledgy Consulting
http://knowledgy.org/

Atlanta's Business Intelligence and Data Warehouse Experts


"Patrick Hill" <phill (AT) nospam_quickcomm (DOT) com> wrote

Quote:
Hi, In my source (text file connection) there is a date field but the date
is stored yyyymmdd (20080226)
I need to convert this into a real date 02/26/2008 and then import it into
the sql server database into a datetime field.
I'm a newbie with DTS so very detailed insturctions would be greatly
appreciated. When I just tried having it import into SQL Server I got an
error obviously since the date in the source data is not in a format sql
server will understand






Reply With Quote
  #10  
Old   
Knowledgy
 
Posts: n/a

Default Re: Converting datatype in the source before import - 02-26-2008 , 09:21 PM



i forgot to mention use convert function when pushing varchar into datetime
column

--
Sincerely,
John K
Knowledgy Consulting
http://knowledgy.org/

Atlanta's Business Intelligence and Data Warehouse Experts


"Knowledgy" <atlanta business intelligence consultants> wrote

Quote:
I'm not going to get detailed but I'll give you one way to do this.
You'll have to do some research on your own.

Import into a varchar column then use convert to transform and push into
your destination datetime column
--
Sincerely,
John K
Knowledgy Consulting
http://knowledgy.org/

Atlanta's Business Intelligence and Data Warehouse Experts


"Patrick Hill" <phill (AT) nospam_quickcomm (DOT) com> wrote in message
news:uKzCVkIeIHA.1212 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Hi, In my source (text file connection) there is a date field but the
date is stored yyyymmdd (20080226)
I need to convert this into a real date 02/26/2008 and then import it
into the sql server database into a datetime field.
I'm a newbie with DTS so very detailed insturctions would be greatly
appreciated. When I just tried having it import into SQL Server I got an
error obviously since the date in the source data is not in a format sql
server will understand








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.