BCP Basics :
bcp sql command can be used to import data.
This process is faster than dts. bcp can be used
with format file or data can directly imported
to a pre-defined table. Format file is the key in
this process.

Code :

BULK INSERT tempdb..U_LNBASE_IMPORT_LNKEYS
FROM '\\dfw-iapp-fsnt51\wiredata\loans.txt'
WITH (
FIELDTERMINATOR = '"',
ROWTERMINATOR = '\n'
)

Comments

Popular posts from this blog

SQL 2008

SQL Buddy

Microsoft a BI Force