Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6106863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:07:30+00:00 2026-05-23T14:07:30+00:00

I need suggestion on best approach from below listed options. I need to validate

  • 0

I need suggestion on best approach from below listed options. I need to validate excel file data and load it to SQL Server

Validations include

  • Non Duplicate columns
  • Mandatoty fields present
  • Fields not present in Database

In case of error I would write in errorlog table in database

Below is my approach

  • Load the Data into a Temp Table in Database
  • Run the Validations
  • Log the Error
  • On success load it to main tables

Please let me know if you have any other better ideas for this scenario

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:07:31+00:00Added an answer on May 23, 2026 at 2:07 pm

    Here are couple of approaches that are possible:

    1. Using SSIS

  2. Create excel connection manager then use dataflow task with OLEDB Source, lookup transform (to eliminate the records NOT needed), OLEDB destination
    directly into main table.
  3. You can also choose to redirect or ignore rows that do not satisfy the transformations.
  4. (use can use bulk insert task if the excel is really large instead of dealing RBAR)

      2. Using TSQL

  5. BULK INSERT or BCP or use OPENROWSET into staging table. Beware that you need to have approriate drivers installed (JET for x32 or ACE for x64 SQL Server).
  6. Then do error handling by logging to error table (raiseerror, try-catch) before loading to main table.
  • 0
  • Reply
  • Share
    Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp
    • Report

Sidebar

Related Questions

I need a excel-like grid control in MFC, do anyone have good suggestion to
I need to deploy a silverlight 4 soltution where it consumes data from a
I'm debating the best way to propagate fairly complex permissions from the server to
I'm just looking for suggestions on the best way to do this... I need
I need suggestion about YAMI library . I have a system which receives Json
I know my question isn't about programming problem, I just need a suggestion to
Locally I need to code against Java 1.4. I tried the suggestion in this
Since I am new to using Unity 2.0, I need some pointer or suggestion
I need suggestions on how can I download attachments from my IMAP mails which
I need select all elements from a set whose Id property is contained within

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.