Created On: 18 May 2012
Problem:
I know that I can export Visual COBOL ADO connections into an XML file using the ADO Connection Editor. Is there a way to automate the import process on the production computers so that we don't have to start ADO Connection Editor on each one in order to import the connection information?
Resolution:
There is a tool to automate the import of ADO connections onto production computers in Visual COBOL 2.0 and COBOL Server 2.0 called mfimportconn.
MFIMPORTCONN:
Enables you to import connection settings previously exported from the ADO.NET Connection Editor.
Syntax
{MFImportConn32_v2 | MFImportConn32_v4 | MFImportConn64_v2 | MFImportConn64_v4} path:\exportedXMLfile {System | User} {32BIT | 64BIT}
Parameters
path | The full path to the XML file containing the exported connection settings |
exportedXMLfile | The filename of the XML file containing the exported connection settings |
System | Specify this to import the connection settings into the machine.config file for use by all users |
User | Specify this to import the connection settings into the UserConnections32.config or UserConnections64.config file for use by the current user only |
32BIT | Specify this for 32-bit connections |
64BIT | Specify this for 64-bit connections |
Incident #2574477