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

  • Home
  • SEARCH
  • 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 434295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:15:36+00:00 2026-05-12T20:15:36+00:00

Our company has a product which relies on local database to work (it allows

  • 0

Our company has a product which relies on local database to work (it allows more client to connect to same database and share data between them).

DBMS: Microsoft SQL Server 2008

Now, we need to create a single database, accessible through internet (i am not interested in the how, for now), which will allow more users to use it as if it is their own.

Simple examples to follow.
By supposing that our program will manage (insert/modify/delete) books and their sellers:

Table Seller:
   IdSeller          PRIMARY
   Name

Table Books:
   IdBook            PRIMARY
   IdSeller          NOT NULL
   Description

Now, we need to distribute it, and categorize data by “Company”

 Table Company:
    IdCompany        PRIMARY
    LicenseNumber

Our idea was to modify primary (??) tables like this:

 Table Seller (NEW VERSION):
    IdSeller         PRIMARY
    IdCompany        NOT NULL
    Name

In this way we are sure Books will belong to specific sellers who will belong to specific companies.
Conceptually this is working, but we will have then to change all the queries made in our DataAccessLayer!

We thought of a couple of solutions:

  • company-filtered-views for each primary table
  • rewrite all the queries

How would you handle this problem?

  • 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-12T20:15:36+00:00Added an answer on May 12, 2026 at 8:15 pm

    Off the cuff, I would re-do the queries in your DAL.

    The problem is, this is a highly situational problem. How frequently do you update this program? Are there major revisions in the work? How equipped is your company to do a large refactoring?

    Sometimes, in the business world, hacking a quick solution is optimal :'(

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

Sidebar

Related Questions

Our company has for many years had multiple domain names to protect our product
I work for a software shop, which has an in house predictive dialer product,
I'm in a position where our company has a database search service that is
our company has made a website for our client. The client hired a webs
Our company has a point of sale system with many extras, such as ordering
Our company has thousands of PDF documents. How do we create a simple search
Our company has a policy imposing the requirement of keeping source code in a
Our company has a fairly large ASP.NET web application. The app is already broken
Recently our company has started measuring the cyclomatic complexity (CC) of the functions in
For whatever reason, our company has a coding guideline that states: Each class shall

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.