I need to import an excel spreadsheet daily to a SQL table. I have a primary key on the ID which is a unique number to each record. The problem I'm...

How It Works

Get an answer in three easy steps. Here's how it works...

Ask Your Question

1. Ask Your Question

Enter your programming question at the top of this page and click Get An Answer.

Pick Your Priority

2. Pick Your Priority

Tell us how quickly you want your programming question answered.

Get An Answer

3. Get An Answer

Connect with your programmer via online chat or telephone call.

Answer

Customer
I need to import an excel spreadsheet daily to a SQL table. I have a primary key on the ID which is a unique number to each record. The problem I'm running into is one of the date fields changes and when SQL 7.0 imports the spreadsheet if it sees a different date it trys to add the record again which violates the primary key and it bombs the whole import. How can I get it to import to the same record and just update the date field of that record?
Posted
Matthew Pomar
Customer Support
I'm not so sure I completely understand your problem, but here's my stab at it: You may want to run this in two process. First, import your spreadsheet into a new temp table. You can do this using DTS and executing a saved package from the repository. Second, create a job that merges the data from temp table into your destination table. Hope this helps. Regards, Matthew Pomar
Posted

quoteTestimonialsquote

About ExpertHelp

ExpertHelp is changing the way you connect with service professionals.

Whether you have a quick question while preparing your taxes, troubleshooting a computer problem, or need to hire an attorney, ExpertHelp is the most convenient and affordable way to connect with the right service professional to get the job done.

ExpertHelp has been in business since 2011, is an A+ Rated Better Business Bureau accredited member, and offers a 100% satisfaction guarantee on every question you ask!

More Programming Questions...

Ask Your Programming Question & Get An Answer Now!