I have c# program, This Get Sql Query From Input and Execute this.
Some times, This Query contain any words that after execute query, return “Divide By Zero Exception”.
I want disable SqlException Before Execute Query and check Other entered word and then enable this.
The feature you are looking for is called Try…Catch.
Read about it here on MSDN.