MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 20th, 2004, 07:01 AM
FaisalHabib FaisalHabib is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Qatar
Posts: 3 FaisalHabib User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
PRIMARY KEY conflicts in DISTRIBUTED DATABASE Design

Scenario:
I have currently single database for managing my ORDERs. ADMIN and CLIENTs both connect to the same database.

My future approach is that I am going to distribute the databases or I should say separate the databases for ADMIN and ORDER.... Clients will place order in ORDER DB and ADMIN will play at ADMIN DB which both will lie on separate servers.... Furthermore, i am going to distribute my ADMIN DB into 3 separate DBs for each of my UNIVERSITY, clearing that my orders are specific to the UNIVERSITY....

Hence in the end i have 3 UNIVERSITY ADMIN DATABASES, which will have all the objects in common, like horizontal partitioning of data.... Problem is that I can't rely on PRIMARY KEY RANGES for values like ORDER ID ( 1 to 1000) in DB 1 and (1001 to 2000) in DB 2 and so on... I need an efficient solution as compared to this, that makes sure that any record inserted in any database for the same entity must have a unique PRIMARY KEY ....

One solution that I have figured out uptil now is that i can keep a compound PRIMARY KEY, which would have UNIVERSITY CODE in every table, which will have a different and fixed value for each SERVER. and leave the rest IDENTITY columns repeating in all the servers.... This solution will cause some major change in my pages and procedures for integrating the new university code field, currently there are only IDENTITY PRIMARY KEYs for each table, i want the solution that will save my alterations to pages and procedures or at a minimum level.

Does anyone have a better solution, Thanks in advance ...

Last edited by FaisalHabib : May 20th, 2004 at 07:04 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > PRIMARY KEY conflicts in DISTRIBUTED DATABASE Design


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway