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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:54:17+00:00 2026-05-20T08:54:17+00:00

Consider two tables A and B , that looks like the following (Let me

  • 0

Consider two tables A and B, that looks like the following (Let me apologize for the ugly ASCII-tables):

----------------------------------     ------------------------
|  SNID  |  PNID  | SerialNumber |     |  PNID  |  PartNumber |
|--------|--------|--------------|     |--------|-------------|
|   0    |   0    |   17823      |     |   0    |  9874-4362  |
|--------|--------|--------------|     |--------|-------------|
|   1    |   0    |   17824      |     |   1    |  1053-1409  |
|--------|--------|--------------|     ------------------------
|   2    |   1    |   97245      |
----------------------------------

I want to make it possible for servers at location α to be able to have specific rights to PNID 0, and servers at location β to have specific access rights to PNID 1, but since it’s the same type of data (just different owners), I don’t think the data should in and of itself be separated.

In any case, I want to make sure if β wants to access assign a serial number for PNID 0, that it must first communicate with α before it is allowed to do so. This would mean that if the network between them went down, that α could produce PNID 0 but not PNID 1 and β could produce PNID 1 but not PNID 0. When the two entities came back into communication with each other however, any serial numbers that α created for PNID 0 would be replicated over to β, and serial numbers from β regarding PNID 1 would be merged into α’s database.

More generally, I would really prefer this be set up with a ‘middle-man’ location, Ω, that made all the decisions regarding whether or not α was able to add a new serial number without β’s permission.

I am currently using SQL Server Express (2008 r2) along with Visual Basic .NET Express (2010) to implement the server, but am open to any other options that may allow me to solve the issues that I’m currently having. To be honest, I’m not positive that what I’m asking is plausible, but if it were, it’s something that I would really be very interested in implementing.

Almost immediately, the first thing I can think of is adding another column to table B that represents location, but I don’t think that’s the ‘right’ way to do this. Especially the part about communicating with the other servers (and to be honest, I don’t even know if I could do that with the databse, so that would probably have to be done in .NET I guess.

  • 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-20T08:54:18+00:00Added an answer on May 20, 2026 at 8:54 am

    Have you considered creating views for α like

    select * from A where PNID0=0
    select * from B where PNID0=0
    

    and creatings views for β

    select * from A where PNID0=1
    select * from B where PNID0=1
    

    Then you can grant permission on these views for different locations instead of creating another Ω location.

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

Sidebar

Related Questions

Do splitting fields into multiple tables ever yield faster queries? Consider the following two
let's consider two views that use the same layout composed of: A left column
Consider following two tables: tag_names (tag_id, tag_name) tag_links (tag_id, image_id) An image can have
Consider two tables: Transactions , with amounts in a foreign currency: Date Amount =========
I ran across a compilation issue today that baffled me. Consider these two container
Consider the following two EXPLAINs: EXPLAIN SELECT * FROM sales WHERE title != 'The'
Let's consider that I want to extend an existing JSF component, such as the
Consider I have two tables, t1 and t2 t1 = (id, name), t2 =
I have two tables like so: EventTable (EID, Name, EventTime) VideoTable (VID, StartTime, Video,
The problem is best explained by example, consider the following two models: class Topping(models.Model):

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.