SteveDingle
Programmer
Hello All,
I am using a data modelling tool (xCase) to maintain my SS2K database. It allows me 2 ways to maintain Referential Integrity - via triggers or via Declarative RI which I see is FK Constraints.
I had chosen to use triggers because I had read in the end hey are more flexible and powerful. However I now find that for certain processes I need to extract the relationship information from SQL Server 2K ( like which columns are FKs and to which table). I know I can use sp_fkeys to get this information but it but there doesn't seem to be any entries in my database. My assumption is that that information is done via the FK Constraints. So I have a coupla questions:
1) Is this information stored any where else and should my data modeling tool be adding it (i.e. is it the tools fault)
And if so, how would my tool add that information
2) If I do need contraints.. can I have both or is that a no-no. AIf I can have both, which gets called first. Contraint or trigger.
Any thoughts and ideas would be greatly appreciated
Thanks
Steve
I am using a data modelling tool (xCase) to maintain my SS2K database. It allows me 2 ways to maintain Referential Integrity - via triggers or via Declarative RI which I see is FK Constraints.
I had chosen to use triggers because I had read in the end hey are more flexible and powerful. However I now find that for certain processes I need to extract the relationship information from SQL Server 2K ( like which columns are FKs and to which table). I know I can use sp_fkeys to get this information but it but there doesn't seem to be any entries in my database. My assumption is that that information is done via the FK Constraints. So I have a coupla questions:
1) Is this information stored any where else and should my data modeling tool be adding it (i.e. is it the tools fault)
And if so, how would my tool add that information
2) If I do need contraints.. can I have both or is that a no-no. AIf I can have both, which gets called first. Contraint or trigger.
Any thoughts and ideas would be greatly appreciated
Thanks
Steve