Sql server® 2012 t-sql fundamentals


   Microsoft SQL Server 2012 T-SQL Fundamentals The



Download 10,93 Mb.
Pdf ko'rish
bet300/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   296   297   298   299   300   301   302   303   ...   443
Bog'liq
BookSQL

252  

Microsoft SQL Server 2012 T-SQL Fundamentals



The 

BULK INSERT

 Statement

You use the BULK INSERT statement to insert into an existing table data originating from a file. In the 

statement, you specify the target table, the source file, and options. You can specify many options, 

including the data file type (for example, char or native), the field terminator, the row terminator, and 

others—all of which are fully documented. 

For example, the following code bulk inserts the contents of the file c:\temp\orders.txt into the 

table dbo.Orders, specifying that the data file type is char, the field terminator is a comma, and the 

row terminator is the newline character.

BULK INSERT dbo.Orders FROM 'c:\temp\orders.txt' 

  WITH  


    ( 

       DATAFILETYPE    = 'char', 

       FIELDTERMINATOR = ',', 

       ROWTERMINATOR   = '\n' 

    );

Note that if you want to actually run this statement, you need to place the orders.txt file provided 



along with the source code for this book into the c:\temp folder.

You can run the BULK INSERT statement in a fast, minimally logged mode in certain scenarios pro-

vided that certain requirements are met. For details, see “Prerequisites for Minimal Logging in Bulk 

Import” in SQL Server Books Online.




Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   296   297   298   299   300   301   302   303   ...   443




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish