I want to refactor the following sql query using parametrized query. Is it possible?
string cmd= $@" IF EXISTS(select * from sys.databases where name=\'