January 6, 2010 at 8:00 pm
Hello,
I am a newbie to SQL Server and I am trying to load data (which is in Excel) to SQL Server. So, what will be best way to load this data since it is a recurring requirement?
Suggestions will be appreciated.
Thanks
January 7, 2010 at 4:52 am
So, what will be best way to load this data since it is a recurring requirement?
It depends...
Will the file always have the same name and being located in the same folder? If so, I'd use a linked server.
If the file has the same "base name" with varying, but predictable part (e.g. myExcel20100107.xls for today), I'd use Openrowset.
If the file is in the same folder but always a different name I'd probably use SSIS.
January 7, 2010 at 6:26 am
I second Lutz thoughts, you can use any one of the ideas. I personally would incline towards SSIS since it gives more capabilities and tools to do this, considering a file name is expected, you can change the SSIS package still to do it for you.
Blog -- LearnSQLWithBru
Join on Facebook Page Facebook.comLearnSQLWithBru
Twitter -- BruMedishetty
January 14, 2010 at 7:25 pm
You can right click on your database and choose tasks -> Import Data.
Then you can walk through the import wizard and on one of the last screens there will be a checkbox where you can choose to keep the SSIS package (so you can run it again later).
Chris
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply