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 6905049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:08:11+00:00 2026-05-27T08:08:11+00:00

I developed an automation application of a car service. I started accessories module yet

  • 0

I developed an automation application of a car service. I started accessories module yet but i cant imagine how should I build the datamodel schema.

I’ve got data of accessories in a text file, line by line (not a cvs or ext.., Because of that, i split theme by substring). Every month, the factory send the data file to the service. It includes the prices, the names, the codes and etc. Every month the prices are updated. I thought the bulkinsert (and i did) was a good choice to take the data to SQL, but it’s not a solution to my problem. I dont want duplicate data just for having the new prices. I thought to insert only the prices to another table and build a relation between the Accessories – AccesoriesPrices but sometimes, some new accessories can be added to the list, so i have to check every line of Accessories table. And, the other side, i have to keep the quantity of the accessories, the invoices, etc.

By the way, they send 70,000 lines every month. So, anyone can help me? 🙂

Thanks.

  • 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-27T08:08:12+00:00Added an answer on May 27, 2026 at 8:08 am

    70,000 lines is not a large file. You’ll have to parse this file yourself and issue ordinary insert and update statements based upon the data contained therein. There’s no need for using bulk operations for data of this size.

    The most common approach to something like this would be to write a simple SQL statement that accepts all of the parameters, then does something like this:

    if(exists(select * from YourTable where <exists condition>))
        update YourTable set <new values> where <exists condition>
    else
        insert into YourTable (<columns>) values(<values>)
    

    (Alternatively, you could try rewriting this statement to use the merge T-SQL statement)

    Where…

    • <exists condition> represents whatever you would need to check to see if the item already exists
    • <new values> is the set of Column = value statements for the columns you want to update
    • <columns> is the set of columns to insert data into for new items
    • <values> is the set of values that corresponds to the previous list of columns

    You would then loop over each line in your file, parsing the data into parameter values, then running the above SQL statement using those parameters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently I have developed an automation application using WatiN API, in .NET Framework 3.5,
I have developed an application which uses the UI Automation managed library. The performance
I have developed an iPhone application which should support iOS4 and iOS5 based iPhone/iPad.
I developed a custom file manager for tinymce. But even if adding image to
I developed a module to display submenus as stand alone module, every thing works
I developed an Android application and published it in the Market. Now I want
I developed a content type of sale car. Now I'm developing its view to
We developed a application in VS2008 in 64-bit machine.We need to host into 32
I'm currently working on a new web application and it's being developed using Oracle
I have developed a simple C# Winforms application that loads MS-Word 2007 documents via

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.