Skip to Content
Jan 28, 2016 at 03:25 PM

Change reports Datasource (sproc) at runtime


Hi folks,

I was advised to move this thread to this forum....

My report is designed to get the data from a stored procedure (sproc1) via the database fields from the field explorer. This has obviously been done at design time where the fields on the report match those that the sproc1 returns.

My question is can I change the report at runtime so that its gets its data from sproc2 instead of sproc1 ?

Both sprocs return exactly the same fieldnames / datatypes etc

I am using Visual Studio C# Win Forms with e mySQL back end.