I would like to create data sources programmatically so I don't have to install the Mpm Administrator at every site. Could I get som examples on how to do this?
/Andreas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
//
// Create a data source descriptor for plugin Mimer
//
MpmDataSourceDescriptor dataSourceDescriptor = new MpmDataSourceDescriptor("DataSourceName", connectionString, "Mimer", new string[] { "ParameterMarkers"});
dataSourceDescriptor.DbmsTypeName = "Mimer SQL ";
//
// Save the data source
//
MpmInfo.SaveConfigInfo(dataSourceDescriptor, false);
Regards
Bengt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like to create data sources programmatically so I don't have to install the Mpm Administrator at every site. Could I get som examples on how to do this?
/Andreas
You do something like this:
//
// Create a data source descriptor for plugin Mimer
//
MpmDataSourceDescriptor dataSourceDescriptor = new MpmDataSourceDescriptor("DataSourceName", connectionString, "Mimer", new string[] { "ParameterMarkers"});
dataSourceDescriptor.DbmsTypeName = "Mimer SQL ";
//
// Save the data source
//
MpmInfo.SaveConfigInfo(dataSourceDescriptor, false);
Regards
Bengt
I'll try that, thanks!