dbTalk Databases Forums  

Help with database design.

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Help with database design. in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rhaazy
 
Posts: n/a

Default Help with database design. - 06-15-2007 , 01:49 PM






I am working on a server/client application where the client scans a
computer for all available mac addresses and stores the information
in
a database, associating mac addresses to assets. I see problems
occuring in terms of NICs being removed, changes to different
machines
on the network, new NICs being added, etc, etc. I am trying to
figure
out what tables, methods, etc I could use to avoid any possible
situations that could arise as I'm trying to store this information.
Any suggestions would be wonderful.


Reply With Quote
  #2  
Old   
rhaazy
 
Posts: n/a

Default Re: Help with database design. - 06-18-2007 , 03:46 PM






For example.
I have an asset table that has an AssetID column and MAC address. The
MAC address stored in this table is the one used to send the
information (via remoting).
I have a MAC table that has a unique MAC for each record, and an asset
ID associated to each MAC.
Any asset ID could have any number of MAC addresses.
I have an information table that holds other information sent via the
remoting.
This table has an ID column and an AssetID column.

I want to find out what issues will arrise when a particular asset
changes, adds, or removes a NIC, therefor altering the MAC information.


Reply With Quote
  #3  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Help with database design. - 06-18-2007 , 04:26 PM



rhaazy (rhaazy (AT) gmail (DOT) com) writes:
Quote:
For example.
I have an asset table that has an AssetID column and MAC address. The
MAC address stored in this table is the one used to send the
information (via remoting).
I have a MAC table that has a unique MAC for each record, and an asset
ID associated to each MAC.
Any asset ID could have any number of MAC addresses.
I have an information table that holds other information sent via the
remoting.
This table has an ID column and an AssetID column.

I want to find out what issues will arrise when a particular asset
changes, adds, or removes a NIC, therefor altering the MAC information.
I don't really grasp what you are up to, but it seems to me that you
need an Assets table which describes the assets (which I assume are
computers). And then you need a Networkcards table keyed by the MAC.
This table would have AssetID as a foreign key. Theoretically, this
column should be nullable, since a network card maybe lying on the desk,
not being connected to anything. I suspect, though, that in this case,
it is not of interest to enter the card into the database.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #4  
Old   
Jason Lepack
 
Posts: n/a

Default Re: Help with database design. - 06-18-2007 , 04:26 PM



There are plenty of off-the-shelf applications that will handle this.

One I've used in the past is Centennial Discovery.

Cheers,
Jason Lepack

On Jun 18, 4:46 pm, rhaazy <rha... (AT) gmail (DOT) com> wrote:
Quote:
For example.
I have an asset table that has an AssetID column and MAC address. The
MAC address stored in this table is the one used to send the
information (via remoting).
I have a MAC table that has a unique MAC for each record, and an asset
ID associated to each MAC.
Any asset ID could have any number of MAC addresses.
I have an information table that holds other information sent via the
remoting.
This table has an ID column and an AssetID column.

I want to find out what issues will arrise when a particular asset
changes, adds, or removes a NIC, therefor altering the MAC information.



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.