Hi Alejandro,
If you want to change the datasource or query but the result of it has the same structure (the fields are the same), you can use a runtime datasource provider.
If the result of the query has different fields, or types, you have to update the report definition to the new datasource structure.
hope it helps,
Simon