Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Any ideas on how I can do this?

Posted on 2011-09-21
4
Medium Priority
?
231 Views
Last Modified: 2012-05-12
I have this process that I'm going to have to do weekly :

I have a "SKU" field (will be used for the ID field) and a "Inventory" field from an Excel .xls sheet I download weekly.
I need to use those 2 fields to update some fields in a Table in a SQL Server database.

I could use C# code and/or SQL.

What would be the easiest way to do this?

0
Comment
Question by:MikeMCSD
4 Comments
 
LVL 6

Accepted Solution

by:
bartvd earned 668 total points
ID: 36575954
0
 
LVL 13

Assisted Solution

by:jonnidip
jonnidip earned 668 total points
ID: 36578373
I suggest you to use Excel DataReader (http://exceldatareader.codeplex.com/), to read from your files.
It is a very good implemented library and lets you work with xls (in reading) without using interop.

Regards.
0
 
LVL 7

Assisted Solution

by:tampnic
tampnic earned 664 total points
ID: 36579468
One option is to create an Access database - use ODBC to create table connections to the main database and the Excel file. Create an Access Query to read the Excel table and INSERT/UPDATE/whatever the database table - you can run functions on the data and validate it before sending to your database if you want. Simple to setup and very flexible - though not as automated as writing something in code. The code route could get tricky depending on your experience, if you're comfortable with SQL this option would look attractive.

Cheers,
  Chris
0
 
LVL 16

Author Comment

by:MikeMCSD
ID: 36584596
Excellent suggestions. Thanks all.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question