The second parameter to he Fill method needs to be the name of the DataTable you want to populate in the DataSet, not a query. Had you read the Help documentation for that method you would know this.