R
RealClass
Hi,
Thanks for taking time out to read this. This is essentially a db design quandary.
I've been setting up an asset management db for a almost a year now and trying to tie all the assets on the network together.
Basically I have stations which comprise assets (base unit, monitor, keyboard, mouse etc.) - a station can be a desk or a network cabinet or an area of the warehouse - it's very open.
I have a station table and asset table (amongst others) and some of the assets (base units, phones, printers etc) can connect to the network through RJ-45 ports - the ones on the wall.
This is where my problem initially started - the RJ-45 sockets.
I originally had each asset holding a field for the RJ-45 info, but then if I moved the asset to another station, it had to loose its' RJ-45 info - since it was no longer connected to that wall
socket. That worked ok because I just added the new RJ-45 info. later to whichever base unit took its' place.
Then I decided to go for a one-to-one relationship with the assets to fixtures (RJ-45's) and build a Fixtures table. So when an asset is moved the Fixture link is deleted - and new ones are added when
needed.
This works ok - so far. Essentially I only hold Fixtures provided that they are attached to a network asset. Once a fixture is no longer connected to a network asset it is deleted from the fixtures
table.
This is my problem - I think I should keep details of all fixtures so I can attach a fixtureFault table - so I can keep info. on which RJ-45's are faulty (and they do go faulty as you well know) so I
can bring them into the Fault report.
But if I remove them when an asset is moved that won't work. But if I keep them on the one-to-one relationship then that seems to violate good db design - also I would not have the 'dead' fixtures
connected to an asset - so I would have null values in the asset id's for those fixtures. Essentially 'hanging' ports not connected to anything.
So if you got this far and understood what I said then thanks...
Should I break relationships with this table altogether and maintain it with code ?
Or should I have done this design differently from the beginning ?
I hope someone understands this enough to help.
I'm ok with the coding but this one bit of the system has been a pain ever since I started to build this db.
Many thanks in advance - if only for your tolerance at reading it.
Regards,
Dave
Thanks for taking time out to read this. This is essentially a db design quandary.
I've been setting up an asset management db for a almost a year now and trying to tie all the assets on the network together.
Basically I have stations which comprise assets (base unit, monitor, keyboard, mouse etc.) - a station can be a desk or a network cabinet or an area of the warehouse - it's very open.
I have a station table and asset table (amongst others) and some of the assets (base units, phones, printers etc) can connect to the network through RJ-45 ports - the ones on the wall.
This is where my problem initially started - the RJ-45 sockets.
I originally had each asset holding a field for the RJ-45 info, but then if I moved the asset to another station, it had to loose its' RJ-45 info - since it was no longer connected to that wall
socket. That worked ok because I just added the new RJ-45 info. later to whichever base unit took its' place.
Then I decided to go for a one-to-one relationship with the assets to fixtures (RJ-45's) and build a Fixtures table. So when an asset is moved the Fixture link is deleted - and new ones are added when
needed.
This works ok - so far. Essentially I only hold Fixtures provided that they are attached to a network asset. Once a fixture is no longer connected to a network asset it is deleted from the fixtures
table.
This is my problem - I think I should keep details of all fixtures so I can attach a fixtureFault table - so I can keep info. on which RJ-45's are faulty (and they do go faulty as you well know) so I
can bring them into the Fault report.
But if I remove them when an asset is moved that won't work. But if I keep them on the one-to-one relationship then that seems to violate good db design - also I would not have the 'dead' fixtures
connected to an asset - so I would have null values in the asset id's for those fixtures. Essentially 'hanging' ports not connected to anything.
So if you got this far and understood what I said then thanks...
Should I break relationships with this table altogether and maintain it with code ?
Or should I have done this design differently from the beginning ?
I hope someone understands this enough to help.
I'm ok with the coding but this one bit of the system has been a pain ever since I started to build this db.
Many thanks in advance - if only for your tolerance at reading it.
Regards,
Dave