Parameter |
Description |
|
Type of the database source (0 = EPLAN database (default value), 1 = SQL Server, 3 = eSTOCK collection). |
|
Database name with complete file path. |
|
Name of the SQL server. |
|
Name of the SQL database. |
|
Name of the user. |
|
Password of the user. |
|
SQL login (0 = Windows registration (default value), 1 = SQL Server registration (user name + password)). |
|
Full name of the SQL Server. Cannot be used together with one of the parameters |
|
Name of the eSTOCK collection. |
|
ID of the eSTOCK collection. |
Notes:
- If
DataSourceType = 0 , the parameterDataBaseFileName can be used. - If
DataSourceType = 1 is selected, the parametersSqlServer ,SqlCatalog ,SqlUserName ,SqlPassword ,SqlLogin andSqlFullName can be used. The parameterSqlFullName is only used ifSqlLogin = 1 is used. - If
DataSourceType = 3 , the parametersCollectionName andCollectionId can be used.
Specifies an EPLAN database as the database source:
XPartsSetDataSourceAction /DataSourceType:0 /DataBaseFileName:C:\Users\Public\EPLAN\Data\Article\COMPANY_NAME\Database.alk
Specifies an SQL Server as the database source with a Windows registration during login:
XPartsSetDataSourceAction /DataSourceType:1 /SqlLogin:0 /SqlServer:SQL_SERVER_NAME /SqlCatalog:SQL_DATABASE
Specifies an SQL Server as the database source with SQL Server registration during login:
XPartsSetDataSourceAction /DataSourceType:1 /SqlLogin:1 /SqlServer:SQL_SERVER_NAME /SqlCatalog:SQL_DATABASE /SqlUserName:SQL_USERNAME /SqlPassword:SQL_PASSWORD
Specifies an SQL Server as the database source with SQL Server registration during login. In the process the full name is specified for the SQL Server:
XPartsSetDataSourceAction /DataSourceType:1 /SqlLogin:1 /SqlFullName:SQL_SERVER_NAME|SQL_DATABASE|2|SQL_USERNAME|SQL_PASSWORD
Specifies an eSTOCK collection as the database source:
XPartsSetDataSourceAction /DataSourceType:3 /CollectionName:ESTOCK_COLLECTION_NAME /CollectionId:ESTOCK_COLLECTION_ID