Hi,
I have to write stored procedure for delete
i am using SQL Server 2005 as my database.
I can delete directly by writing stored procedures simply to delete.But i have to check the condition to find weather the ID i am going to delete is used as Foreign key in another table.If it is used it should not be deleted.
Can anyone help me.
Thank you
I have to write stored procedure for delete
i am using SQL Server 2005 as my database.
I can delete directly by writing stored procedures simply to delete.But i have to check the condition to find weather the ID i am going to delete is used as Foreign key in another table.If it is used it should not be deleted.
Can anyone help me.
Thank you
Comment