Checking an input param if not Null and using it in where in SQL Server Checking an input param if not Null and using it in where in SQL Server sql-server sql-server