IF EXISTS (Select AccountID(Primary Key) From AccountMaster Where AccountCode = @AccoundCode) BEGIN -- your logic END ELSE BEGIN -- your message END
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)