I have an small question I didn't found an answer yet: how do I get in c# and using Microsoft.SqlServer.Smo the table a foreign key column is referring to?
foreach (Column column in currentTable.Columns) {
if (column.IsForeignKey) {
//GET TABLE FOREIGN KEY REFERS TO
}
}