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_NAMENULL
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