SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

Excluding a foreign key in SAS DIS

Reply
Contributor
Posts: 37

Excluding a foreign key in SAS DIS

[ Edited ]

Hi all,

 

Supposing we have a table A which has a field/column as foreign key but we don't need it anymore, what is the best practice to delete this field as foreign key in SAS DIS?

 

Going to the properties of the table and excluding it from the tab keys doesn't seem to be enough. Running the proc contents of the table B which has this field as primary key we still see the reference.

 

 

Thanks,

 

May15

Super Contributor
Posts: 271

Re: Excluding a foreign key in SAS DIS

You are updating the metadata information when you are Going to the properties of the table and excluding it from the tab keys .

 

But physical table still has that properties.

 

I would suggest to make change in your physical dataset and then update table metadata. 

Contributor
Posts: 37

Re: Excluding a foreign key in SAS DIS

Hi RahulG,

 

Thanks for your reply.

 

How would you make change in physical data set?

 

 

Thanks,

 

May15

Super User
Posts: 5,849

Re: Excluding a foreign key in SAS DIS

PROC DATASETS.
Data never sleeps
Contributor
Posts: 37

Re: Excluding a foreign key in SAS DIS

Hi LinusH,

 

I actually can't see anymore the foreign key in what I called table A.

The issue is that in table B, which has the primary key that is referred to the foreign key, I still see the referential constraint. How can I remove it without dropping and recreating the table B?

 

Output_2.PNG

Ask a Question
Discussion stats
  • 4 replies
  • 161 views
  • 0 likes
  • 3 in conversation