|
|
Question : Alternative for "on delete cascade" of SQl-server 2000 in Sybase ASE
|
|
Hi, I am porting the code from SQL Server to Sybase and I am having difficulty in implementing on delete cascade in Sybase. I can do it from Database by writing a trigger for delete on master table but in order to implement this we have to remove foreign key constraint from DDL table creation command. Then I have to write more insert,update trigger on child table to ensure data integrity. Is there any good approach?
Please help if anyone of you faced this problem.
Thanks Regards --PC
|
Answer : Alternative for "on delete cascade" of SQl-server 2000 in Sybase ASE
|
|
Re. bulk insert: This *only* applies to bcp from a file, or bulk transfers specifically coded using the Bulk Library of Open Client. For any INSERT command, trigger performance is the same as with referential integrity. So I suspect it won't make any difference to you. Specifically, INSERT based on a SELECT is not affected.
|
|
|
|