MPInterfacebInitInterface Method (String, String, String, String) |
Namespace: MARIInterface
public bool bInitInterface( string sMSSQLServerName, string sMARIProjectDataBaseName, string sSQLUID, string sSQLPWD )
//The file MARIProjectConnection.xml is not needed with this version of bInitInterface(Server,db,user,pwd). MARIInterface.MPInterface MPInterface; MPInterface = new MARIInterface.MPInterface(); //Initialize the interface including the database credentials if (MPInterface.bInitInterface("SQLServer", "MARIProjectDemoDB", "sa", "geheim")) { // MARIProject user and password if (MPInterface.bUserLogin("MARINGO", "")) { // Start your code here... this.oMPInterface = MPInterface; } else { // Read results from oError Object throw new SystemException("Login failed: " + MPInterface.oErrors.PrintErrors()); } } else { // Read results from oError Object throw new SystemException("Login failed: " + MPInterface.oErrors.PrintErrors()); }