dbTalk Databases Forums  

Import flat file with no column names into sql server 2005

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


Discuss Import flat file with no column names into sql server 2005 in the microsoft.public.sqlserver.dts forum.



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

Default Import flat file with no column names into sql server 2005 - 05-03-2010 , 03:09 PM






Ok Gurus,
Here is an interesting situation, I have a coworker that has a flat file
with no column headers that needs to be imported or appended into a
table in SQL Server 2005. Since the file has no column names each time
during the import it inserts col1, col2,col3 as the column names,
erasing the already existing colum names. I am trying to keep this
simple and not use ssis as this will confuse the endworker with having
to load more venues of software... In other words is there a way to
import a flat file with only text and do a sort of select into
situation?? ie using a truncated table as the import destination without
recreating the table each time in order to maintain the existing column
names??

thanx much
Wisord

*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #2  
Old   
Todd C
 
Posts: n/a

Default RE: Import flat file with no column names into sql server 2005 - 05-05-2010 , 03:49 PM






OK, help us out here.
You say it has no column names. Are the columns in the same order each time?

What's the reason for NOT using SSIS? Sounds perfect for this job!
--
Todd C
MCTS SQL Server 2005


"Bill Orova" wrote:

Quote:
Ok Gurus,
Here is an interesting situation, I have a coworker that has a flat file
with no column headers that needs to be imported or appended into a
table in SQL Server 2005. Since the file has no column names each time
during the import it inserts col1, col2,col3 as the column names,
erasing the already existing colum names. I am trying to keep this
simple and not use ssis as this will confuse the endworker with having
to load more venues of software... In other words is there a way to
import a flat file with only text and do a sort of select into
situation?? ie using a truncated table as the import destination without
recreating the table each time in order to maintain the existing column
names??

thanx much
Wisord

*** Sent via Developersdex http://www.developersdex.com ***
.

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.