I am still new to all of this but I have searched but cannot find this option.
I have an excel file with the data but I cannot get it in my database.
I am still new to all of this but I have searched but cannot find this option.
I have an excel file with the data but I cannot get it in my database.
I use this script. Frist save you Excel file as a CSV and then run this:
BULK INSERT TABLENAME
FROM 'C:\FILENAME.csv'
WITH (
FIELDTERMINATOR = ';',
FIRSTROW = 1,
ROWTERMINATOR = '
'
);
Hope it helps :)
In Management Studio, right click on the target database and choose "Tasks", then "Import Data". In the Import/Export Wizard, click "Next" at the splash screen (if applicable).
On the Data Source screen, choose "Microsoft Excel" and browse to your file and choose the proper version and click "Next"
On the Destination screen, choose "SQL Server Native Client", entering applicable credentials and database, then click "Next"
On the Specify Table screen, click "Next".
On the Select Source Tables, check the worksheets you want to import and optionally type the name of the destination SQL table to which the XLS tab will import - and click "Next".
On the Run Package screen click "Finish", then "Finish" again to to start the import.
With a little luck, the wizard will create the table and start copying rows.