dbTalk Databases Forums  

specifying columns in bcp

microsoft.public.sqlserver.server microsoft.public.sqlserver.server


Discuss specifying columns in bcp in the microsoft.public.sqlserver.server forum.



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

Default specifying columns in bcp - 08-03-2006 , 07:42 AM






Hi all

While reading a textfile using BCP can we specify the column names.

The actual situation i am in is i have a number of text files which
have to be read into a single table. and all the text files have the
first 20 columns in common, the rest is different from file to file. i
need only those 20 columns into my table. is there any option with BCP
to get over this.

thanks


Reply With Quote
  #2  
Old   
Amol Lembhe
 
Posts: n/a

Default RE: specifying columns in bcp - 08-04-2006 , 10:38 AM






Hi,
try creating activex script in DTS package


"sri" wrote:

Quote:
Hi all

While reading a textfile using BCP can we specify the column names.

The actual situation i am in is i have a number of text files which
have to be read into a single table. and all the text files have the
first 20 columns in common, the rest is different from file to file. i
need only those 20 columns into my table. is there any option with BCP
to get over this.

thanks



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 - 2013, Jelsoft Enterprises Ltd.