Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Cannot truncate table because it is being referenced by a FOREIGN KEY constraint.".

$
0
0

Good Morning,

I have a package that has a sql task which truncates the tables before loading the data. I know these tables cannot be truncated since they have PK on them. I tried to use the DROP and  CREATE and i'm still getting the same error. If i canot use TRUNCATE, DROP and CREATE........ What is the best solution? Thanks


Viewing all articles
Browse latest Browse all 24688

Latest Images

Trending Articles



Latest Images

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