Importing Components Into the Database

Similar to the Component Database Manager, XPECMD lets you import components into the database. This is done through the DBImport or dbi command. The following example shows how to do this.

xpecmd> dbopen myServer
xpecmd> dbimport "c:\myslds\myComponent.sld"         (Import myComponent.sld by itself.)
xpecmd> dbimport "c:\myslds"                        (Import all SLDs in the specified folder.)

If your components contain their own repository files and you want to import those files as well, you must specify the repository root for your component database. Otherwise, only the SLD itself will be imported. The following example shows how to do this.

xpecmd> dbimport "c:\myComponent\SLD\myComponent.sld" \\myServer\Repositories
xpecmd> dbimport "c:\my Component 2\SLD\my Component 2.sld" "c:\Windows Embedded Data\Repositories"

Note   If a repository folder already exists for your component, XPECMD will attempt to delete it before importing components. This requires that you have Full Control access to the repository root; otherwise, the import process will fail. Also, all repository files in this folder will be deleted. You need to make sure that individual SLDs each have their own unique repositories.

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.