Hi,
I have a bit of SQL whereby I have a list of tables,
from that I can get the 'id' of each table from sysobjects.
Using the 'id' and 'indid' of 1 - I can derive the name
of the primary key -
however, I am not sure then which table to interrogate
to get the name of the actual column the primary key
refers too...
Any ideas?
I have a bit of SQL whereby I have a list of tables,
from that I can get the 'id' of each table from sysobjects.
Using the 'id' and 'indid' of 1 - I can derive the name
of the primary key -
however, I am not sure then which table to interrogate
to get the name of the actual column the primary key
refers too...
Any ideas?