|
-
Jan 28th, 2005, 05:07 AM
#2
Re: Guid versus ID
I guess one would normally have (for example) a Vehicle_ID field that pointed to an auto-incrementing ID in the Vehicles table
Well no... You can use your own code to make up numbers as long as they are unique, you shouldn't have a problem.
If you are getting data from several apps, perhaps it would be best to get a complete list of all options (clean it up as well I guess) and then when importing you assign the ID from the complete list against the text in the records.
I've just re-read that and it sounds confusing... So I'll try to write an example
App1
01 - Car
02 - Truck
03 - Van
App2
01 - Van
04 - Car
06 - Lorry
YourNewDB
01 - Car
02 - Truck
03 - Van
04 - Lorry
Table of data incoming:
blah blah Car blah blah
blah blah Van blah blah
blah blah Lorry blah blah
Changes to:
blah blah 01 blah blah
blah blah 03 blah blah
blah blah 04 blah blah
Now if you need to get updates of info (because life is never easy) you may want to have a lookup list from the old values to the new (if ids are held in the old/other app) then you can use that insted to ensure your data is correct.
Just a thought.
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|