Passing sql query to report viewer

Submitted by ahmedmii on
Hello guys, How can I pass sql query to report viewer in coding? I have the dataset and adpter. How can I get the result to report viewer?