I would like to display the name of the data source used in my report, as a way to quickly identify the origin of the data.
I know I can display the name of an embedded datasource like this :
=DataSource("name").DataSourceReferenceString
However my report does not embed a datasource as I am using shared datasets.
Any ideas ? Am I "doing it wrong" ?
EDIT : The answers so far involve using the DataSources collection. The thing is... my report does not reference any data source whatsoever. It does reference a shared dataset, which itself references a data source. This approach allows me to change the data source of all my reports by editing the shared dataset. But I'm always open to better ideas.