Reputation: 5602
I'm trying to insert a row into a Sybase ASE table, and I get a error saying,
Attempt to insert duplicate key row in object 'Employee' with unique index 'Employee_uk'
When I opened the DDL for the Employee
table I don't see a unique constraint in it. So some other table's DDL is created with a unique index pointing to this Employee table.
How can I find which table is created with this unique index?
Cheers!!
Upvotes: 1
Views: 150
Reputation: 248
You can use the command:
sp_help Employee
to obtain all the information about the table. This command can be used to get information on any database object.
Regards
Upvotes: 1