cancel
Showing results for 
Search instead for 
Did you mean: 

Primary key for row in table '%1' is referenced by foreign key '%2' in table '%3'

Former Member
0 Kudos
1,924

I am getting this error when I try to delete rows from my database. I realize why I am getting this error from this link: http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.sqlanywhere.12.0.1/saerrors/errm1...

How can I get around this? I am working in C#.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Alright sorry I think I figured out the problem. When creating the table, I was setting it to "on delete restrict." I changed it to "on delete cascade" and it now works.

Answers (0)