dbTalk Databases Forums  

manually create a bcp file

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


Discuss manually create a bcp file in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bryce K. Nielsen
 
Posts: n/a

Default manually create a bcp file - 05-17-2006 , 09:33 AM






Is there documentation/website/tutorial on how to create a bcp file
manually? In one project, I need to generate a bcp file from infromation
inside a DataTable but not sure what the file needs to look like.

-BKN



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: manually create a bcp file - 05-17-2006 , 06:28 PM






Hello Bryce,

What do you mean a BCP File? Do you mean a format file or do you mean the
exported data?


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Is there documentation/website/tutorial on how to create a bcp file
manually? In one project, I need to generate a bcp file from
infromation inside a DataTable but not sure what the file needs to
look like.

-BKN




Reply With Quote
  #3  
Old   
Bryce K. Nielsen
 
Posts: n/a

Default Re: manually create a bcp file - 05-18-2006 , 12:54 PM



Quote:
What do you mean a BCP File? Do you mean a format file or do you mean the
exported data?

The exported data. In other words, I need to create a file that I can use
the BCP utility program to import the data into. But I have no idea what the
format of this file should be.

-BKN




Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: manually create a bcp file - 05-18-2006 , 06:31 PM



Hello Bryce,

The thing about BCP is it imports into or exports from. So you can either
import into SQL Server from a text file or you can export from a sql server
table to a flat file.

http://msdn2.microsoft.com/en-us/library/ms162802.aspx


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
What do you mean a BCP File? Do you mean a format file or do you
mean the exported data?

The exported data. In other words, I need to create a file that I can
use the BCP utility program to import the data into. But I have no
idea what the format of this file should be.

-BKN




Reply With Quote
  #5  
Old   
Bryce K. Nielsen
 
Posts: n/a

Default Re: manually create a bcp file - 05-19-2006 , 01:07 PM



Quote:
The thing about BCP is it imports into or exports from. So you can either
import into SQL Server from a text file or you can export from a sql
server table to a flat file.

I understand that, what I was asking is what the file needs to look like to
do the export. I'm creating the file in code (not using BCP) and then need
to use BCP to import the file into the SQL Server, but I need to know what
format this file should look like.

-BKN




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.