Quantcast
Channel: Spiceworks Community - Latest topics
Viewing all articles
Browse latest Browse all 188897

Table column integrity

$
0
0

All:

I have a fairly straight forward question regarding SQL Server 2008 Express Ed. There are two tables in question: manufacturers table and assets table.

Ithe manufacturer's table has two columns that I pre-populated with data. One is an identity column and the other are the names of manufacturers. I would like the assets table to have a manufacturer's column that limit the entry to that of the corrosponding column in the manufacturer's table. The datatypes and sizes are identical.

Would a Foreign Key constraint be what is necessary to ensure this is accomplished? Hope my question make sense.

Thanks,

Jesse


Viewing all articles
Browse latest Browse all 188897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>