7.4.6. Create an infobase from the export file (*.dt)
ibcmd infobase create --dbms=mssqlserver --database-server=dbServerName --db-user=dbUser --database-password=dbUserPassword --database-name=docs-db --data="D:\ss-data\cs-data" --create-database --restore=1cv8.dt
Command execution result:
[ INFO] Creating infobase... [ INFO] Infobase created [ INFO] Infobase import... [ INFO] Infobase imported
As a result of this command, the following actions will be executed:
- The docs-db database will be created in Microsoft SQL Server with the dbServerName name.
- To access the DBMS, the dbUser user is used. The dbUserPassword password is set for them.
- If a database is not available, it is to be created.
- After creating the database, information from the 1cv8.dt file is to be imported to the database. The file is located in the directory where the above command is started from.