Repository.ConnectToOracleRepository: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 23: Line 23:
  {{APIComment|'Connect to the Synthesis repository.}}
  {{APIComment|'Connect to the Synthesis repository.}}
   Dim Success As Boolean = False
   Dim Success As Boolean = False
   Success = MyRepository.ConnectToOracleRepository("OraclePort", "OracleService", "OracleHost", "OracleSchema", "OraclePassword")
   Success = MyRepository.ConnectToOracleRepository("OraclePort", "OracleService",  
    "OracleHost", "OracleSchema", "OraclePassword")

Revision as of 21:31, 23 May 2014


Connects to an Oracle repository. Returns True if successful, otherwise returns False.

Syntax

  • ConnectToOracleRepository( Port As Integer, Service As String, Host As String, Schema As String, Password As String)As Boolean

Parameters

Port: The server port for the Oracle Repository.
Service: The Oracle Database name for the Synthesis Repository to connect.
Host: The Oracle Host name.
Schema: The Oracle Schema.
Password: The Password for the database.

Usage Example

 'Declare a new repository connection class. 
 Dim MyRepository As New Repository
 
 'Connect to the Synthesis repository. 
 Dim Success As Boolean = False
 Success = MyRepository.ConnectToOracleRepository("OraclePort", "OracleService", 
   "OracleHost", "OracleSchema", "OraclePassword")