in sql server,
i created one master table.
in that table i have one primary key(say id).
in second table, i am using "id" as foriegn key.
now when i am deleting any row in master table ,if it is having any childs ,then it is throwing error that this row cannot be deleted in the back end
but when i am trying to delete that particular row from vb.net ,that row is bieng deleted
i dont want that
when i am trying to delete any row which is having any childs from vb.net then an error or say warning should be displayed saying that the particular row is having childs so first delete that child nodes
so what should i do
one more BIG doubt I am having is can i have more than one foriegn keys in a single table(this is the case when i am trying to use more than one masters in my form )
hope my question is clear
any queries welcome
thanks
i created one master table.
in that table i have one primary key(say id).
in second table, i am using "id" as foriegn key.
now when i am deleting any row in master table ,if it is having any childs ,then it is throwing error that this row cannot be deleted in the back end
but when i am trying to delete that particular row from vb.net ,that row is bieng deleted
i dont want that
when i am trying to delete any row which is having any childs from vb.net then an error or say warning should be displayed saying that the particular row is having childs so first delete that child nodes
so what should i do
one more BIG doubt I am having is can i have more than one foriegn keys in a single table(this is the case when i am trying to use more than one masters in my form )
hope my question is clear
any queries welcome
thanks