Connecting to a Database

When running XPECMD, you must first connect to a component database. You can do this using the dbopen or dbo command.

xpecmd> dbopen <servername>

By default, the connection is opened in read/import mode, which allows you to read from the database and import new components into it, but you do not have full control over the database.

You can also request an exclusive connection for full control by including the /excl switch.

xpecmd> dbopen <servername> /excl

You can also direct XPECMD to connect to the database directly from the command-line.

> xpecmd.wsf /db:<servername> [/excl]

When you are done with the database connection, you can close it again with the dbclose or dbc command.

xpecmd> dbclose

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.