ALM Site Administratation Client Type Library
ImportProject Method
DomainName

The domain of the new project.

ProjectName

The new project name.

DbType

The type of database. Use the following constants or their values:

  • SA_MSSQL_DB_TYPE (value: 2)
  • SA_ORACLE_DB_TYPE (value: 3).
DbServerName

The database server name.

AdminUser

The database administrator user name.

AdminPassword

The database administrator password.

TableSpace

Storage on disk of Oracle database tables. If not Oracle, pass empty string ("").

TempTableSpace

Temporary storage location on disk for Oracle. If not Oracle, pass empty string ("").

TableSpaceSize

No longer in use. Pass zero (0).

TempTableSpaceSize

No longer in use. Pass zero (0).

CreationOptions

One or more of the values:

  • SA_PROJECT_CREATION_NONE
  • SA_ACTIVATE_NEW_PROJECT
  • SA_CREATE_VERSION_CONTROL_DB

of the SA_PROJECT_CREATION_OPTIONS Enumeration.

To specify both ACTIVATE and CREATE_VERSION_CONTROL, OR the options together:

(SA_ACTIVATE_NEW_PROJECT Or SA_CREATE_VERSION_CONTROL_DB)

FileName
The full path name of the file into which to export the project data. The file has a QCP extension.

Description

Imports project from file.

Syntax

Visual Basic
Public Sub ImportProject( _
   ByVal DomainName As String, _
   ByVal ProjectName As String, _
   ByVal DbType As Integer, _
   ByVal DbServerName As String, _
   ByVal AdminUser As String, _
   ByVal AdminPassword As String, _
   ByVal TableSpace As String, _
   ByVal TempTableSpace As String, _
   ByVal TableSpaceSize As Long, _
   ByVal TempTableSpaceSize As Long, _
   ByVal CreationOptions As Long, _
   ByVal FileName As String _
) 

Parameters

DomainName

The domain of the new project.

ProjectName

The new project name.

DbType

The type of database. Use the following constants or their values:

  • SA_MSSQL_DB_TYPE (value: 2)
  • SA_ORACLE_DB_TYPE (value: 3).
DbServerName

The database server name.

AdminUser

The database administrator user name.

AdminPassword

The database administrator password.

TableSpace

Storage on disk of Oracle database tables. If not Oracle, pass empty string ("").

TempTableSpace

Temporary storage location on disk for Oracle. If not Oracle, pass empty string ("").

TableSpaceSize

No longer in use. Pass zero (0).

TempTableSpaceSize

No longer in use. Pass zero (0).

CreationOptions

One or more of the values:

  • SA_PROJECT_CREATION_NONE
  • SA_ACTIVATE_NEW_PROJECT
  • SA_CREATE_VERSION_CONTROL_DB

of the SA_PROJECT_CREATION_OPTIONS Enumeration.

To specify both ACTIVATE and CREATE_VERSION_CONTROL, OR the options together:

(SA_ACTIVATE_NEW_PROJECT Or SA_CREATE_VERSION_CONTROL_DB)

FileName
The full path name of the file into which to export the project data. The file has a QCP extension.

Return Type

On success, returns an XML string containing the project properties.

See Also

Send documentation feedback to HP.