April 1, 2008 at 1:17 pm
Hi
I have an excel file (with an ever changing name) that will need to uploaded into a table.
SSIS does not work on our servers so it is out of the question.
I also don't want to use bcp or linked servers.
Should I use:
BULK INSERT
or
OPENROWSET
or
OPENDATASOURCE
and does anyone know of a good comparision of these options?
April 1, 2008 at 10:12 pm
BULK INSERT is absolutely the fastest... but I don't believe that it supports importing Excel Spreadsheets.
Even if it did, if someone has the spreadsheet open, SQL Server will not be able to use it. Is there no way to export the spreadsheet to a Tab delimited file, first?
--Jeff Moden
Change is inevitable... Change for the better is not.
April 2, 2008 at 5:14 am
Unfortunately, the people that will be dropping these files are comfortable with excel and asking for a tab delimeted file (I know it's as simple as "save as") will be too much for them.
Excel is the format requirement.
April 2, 2008 at 7:41 am
I am testing out OpenRowSet.
One problem I am having is permissions as the the files are on a share.
What permission do I need to give to the share? The account SQL runs under?
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply