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

Violation of PRIMARY KEY constraint 'primkey_x'. Cannot insert duplicate key in object tablename

$
0
0

Hi ,

I am getting Violation of PRIMARY KEY constraint 'log_primkey_x'. Cannot insert duplicate key in object 'table name'.

sp_primarykeys  @table_server = 'server' 
     ,  @table_name =  'prime_column' 
      , @table_schema =  'dbo'  
      ,  @table_catalog = 'test'

By using above code to fetch primary keys its shows as o/p below:

PK_NAME
NULL
NULL
NULL

 i thought of that don't have primearykeys in that table and its refernce tables also.

How can I hndle this situation.please suggest me.

Thanks

AVS

 

Viewing all articles
Browse latest Browse all 24688

Trending Articles



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