Click to See Complete Forum and Search --> : Excel Data Extraction
tp_nye
Oct 7th, 2005, 03:59 PM
Hi all,
I have an excel sheet.I have to import the data from this sheet to sql server table . Appreciate if anybody can tell how to do this.
Regards,
Nye
si_the_geek
Oct 7th, 2005, 05:17 PM
Hi tp_nye, welcome to VBForums! :wave:
The easiest way to do this is to use the tools built in to the Enterprise Manager (EM) application provided with SQL Server, as the import/export wizard can get data from many sources, including Excel files.
You just need to locate the server & database with EM, then right-click on it and select the Import option. I haven't got the software with me, but I think that most/all of the steps are fairly clear. If you have any problems doing it, let us know :)
RobDog888
Oct 7th, 2005, 05:39 PM
Yes, Si is correct. EM has a tool called the DTS - Data Transformation Services. You can set up a package for one time use of for use over and over again when added to a scheduled Job.
Create a new package from the left pane or just right click on the right pane and select new package.
http://www.vbforums.com/attachment.php?attachmentid=41608
You will want to select the Excel source file and configure any needed settings.
Then select the SQL server and map any transformations needed.
Then select the Excel source you just created and hold down the shift button and select the SQL server source you also created and then click on the transformation gears to create a link flow from excel to sql.
http://www.vbforums.com/attachment.php?attachmentid=41609
When your done you can save it for repeated use.
:D
si_the_geek
Oct 7th, 2005, 05:46 PM
Nice pictures RobDog :D
That wasn't actually what I was thinking (it's a good alternative tho - especially if this will be repeated), I was thinking of the Wizard when you right-click on a table within a database (or on the database name) and select "Import.." or whatever it is called.
RobDog888
Oct 7th, 2005, 05:49 PM
Ok, let me re-connect to the server and double check. :D
RobDog888
Oct 7th, 2005, 05:57 PM
Its the same thing only different way to get there basically with a few minor differences. :D
http://www.vbforums.com/attachment.php?attachmentid=41610
http://www.vbforums.com/attachment.php?attachmentid=41611
si_the_geek
Oct 7th, 2005, 06:04 PM
Yep, but it is a bit easier to use in my opinion. :D
RobDog888
Oct 7th, 2005, 06:17 PM
Tomatò vs. Tomatoë :D
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.