How to use BULK INSERT to import data SQLSERVER in bulk
This article is about how to use BULK INSERT to import SQL SERVER data in bulk. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
The code is as follows:
CREATE TABLE [dbo]. [course]( [id] [int] NULL, [name] [nvarchar](50) NULL, [CourseType] [nvarchar](50) NULL, [Course] [float] NULL )
Import data: Store the following data as text files or SQL files 2, Li Gang, Chinese, 89;3, Li Gang, Mathematics, 79;3, Li Gang, English, 69;4, Li Gang, Chemistry, 89 Import statements:
BULK INSERT dbo.course FROM 'd:\course.txt ' WITH ( FIELDTERMINATOR =',', ROWTERMINATOR =';' ) Thank you for reading! About "how to use BULK INSERT to import large quantities of data SQLSERVER" This article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!