singkat padat, gunakan metode bulk insert, contohnya seperti dibawah ini :D
BULK
INSERT EdStats.dbo.region
FROM 'E:\kuliah\semester4\tugas\BIDW\FP\database\region.csv'
WITH
(
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '\n'
)
GO
--Check the content of the table.
SELECT *
FROM EdStats.dbo.region
GO
--Drop the table to clean up database.
DROP table EdStats.dbo.region
GO
BULK
INSERT EdStats.dbo.region
FROM 'E:\kuliah\semester4\tugas\BIDW\FP\database\region.csv'
WITH
(
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '\n'
)
GO
--Check the content of the table.
SELECT *
FROM EdStats.dbo.region
GO
--Drop the table to clean up database.
DROP table EdStats.dbo.region
GO
0 komentar:
Posting Komentar