PredictorServiceSiteAdmin.Init

Ee826054.c++_on(en-US,CS.10).gifEe826054.vb_off(en-US,CS.10).gif

Use this method to initialize the connection to the Data Warehouse.

Definition

Sub Init(sSiteName As String,sDWConnStr As String)

Parameters

sSiteName

A String that is unused. Pass in an empty string.

sDWConnStr

A String that contains the Data Warehouse connection string.

Return Values

None.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

The models and model configurations are stored in tables in the Data Warehouse.

Initialize the connection to the Data Warehouse before any other properties or methods of the PredictorServiceSiteAdmin object are called.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

oPredictorServiceSiteAdmin.Init "", _
 "Provider=SQLOLEDB;Data Source=servername;" & _
 "Initial Catalog=Retail_commerce;User ID=user;Password=*****;"

See Also

PredictorServiceAdmin Object

PredictorServiceSiteAdmin Object

PredModelBuilder Object

PredictorClient Object


All rights reserved.