“Mengimpor data Excel ke SQL Server” Kode Jawaban

Impor Excel ke SQL

You can also use OPENROWSET to import excel file in sql server.

SELECT * INTO Your_Table FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
                        'Excel 12.0;Database=C:\temp\MySpreadsheet.xlsx',
                        'SELECT * FROM [Data$]')
Santino

Mengimpor data Excel ke SQL Server

# For file excel 2007 version (*.xlsx)
INSERT INTO MyTable
SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0;Database=D:\test.xlsx', [Customer$])

# For file excel 97-2003 version (*.xls)
INSERT INTO MyTable
SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=D:\test.xls', [Customer$])
Mappy Show

Ekspor data dari Excel ke SQL Server

From your SQL Server Management Studio, you open Object Explorer, go to your database where you want to load the data into, right click, then pick Tasks > Import Data. 
This opens the Import Data Wizard, which typically works pretty well for importing from Excel.
dcbert

Jawaban yang mirip dengan “Mengimpor data Excel ke SQL Server”

Pertanyaan yang mirip dengan “Mengimpor data Excel ke SQL Server”

Lebih banyak jawaban terkait untuk “Mengimpor data Excel ke SQL Server” di Sql

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya