I want to change the database connection from microsoft sql server(oleDB connection in Report) to oracle(ODP connection in Report) of a report programmatically. I could transform the datasources from the original connection to the oracle connection. It also worked for the relations and in some points for the parameters of the datasources.
The only problem I faced was when adding a StiDataParameter to a datasource one has to add the type of the parameter.
The constructor of StiDataParameter looks like this:
Code: Select all
StiDataParameter(string name, string value, int type, int size)
Can you tell me, if there's an easy way to convert parameters, or only the types of these parameters, from microsoft sql server datasources(oleDB connection in Report) to oracle(ODP connection in Report) datasources? Are there any enums for an easier handling?
Thx in advance, greetings