fix foreign key referential action SQL on SQL Server and SQL Anywhere