Eplan Platform API
Eplan.EplApi.MasterData Namespace / MDPartsManagement Class / OpenDatabase Method / OpenDatabase(String) Method
The file name of access database. or a string for selecting a SQL Server database. The syntax of that string is: "Server|Database|0" Windows authentication "Server|Database|2|Username|Password" SQL Server authentication, username and password not encrypted.

OpenDatabase(String) Method
Opens the given parts database.
Syntax
public MDPartsDatabase OpenDatabase( 
   string databaseName
)

Parameters

databaseName
The file name of access database. or a string for selecting a SQL Server database. The syntax of that string is: "Server|Database|0" Windows authentication "Server|Database|2|Username|Password" SQL Server authentication, username and password not encrypted.
Exceptions
ExceptionDescription
Thrown when database name is null
Thrown when database name is empty
Thrown when it was not possible to connect with the database. Please refer to the system messages for further information.
See Also