Repository.ConnectToOracleRepository: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:API}}{{Template:APIBreadcrumb|.[[Repository Class|Repository]]}}
{{Template:Repository.ConnectToOracleRepository.Cmt}}
 
 
<onlyinclude>Connects to an Oracle repository. Returns a '''Boolean''' value; when true, indicates a successful connection to the repository.</onlyinclude>


== Syntax ==
== Syntax ==
*ConnectToOracleRepository({{APIPrefix|ByVal}} Port {{APIPrefix|As Integer}}, {{APIPrefix|ByVal}} Service {{APIPrefix|As String}}, {{APIPrefix|ByVal}} Host {{APIPrefix|As String}}, {{APIPrefix|ByVal}} Schema {{APIPrefix|As String}}, {{APIPrefix|ByVal}} Password {{APIPrefix|As String}}){{APIPrefix|As Boolean}}
'''.ConnectToOracleRepository'''(''Port'', ''Service'', ''Host'', ''Schema'', ''Password'')


Parameters
===Parameters===
:''Port'': The server port for the Oracle repository.
''Port''
:Required. Integer. The server port for the Oracle repository.


:''Service'': The repository service identifier.
''Service''
:Required. String. The repository service identifier.


:''Host'': The repository host identifier.
''Host''
:Required. String. The repository host identifier.


:''Schema'': The repository schema.
''Schema''
:Required. String. The repository schema.


:''Password'': The repository password. (Your Windows login credentials are used for access to the database; use your Windows password.)
''Password''
:Required. String. The repository password or the Windows login password used for access to the database.


{{Template:BooleanReturn.Cmt}}


== Usage Example ==
==Example==


  {{APIComment|'Declare a new repository connection object.}}
'''VBA|VB.NET'''
  Dim MyRepository As New Repository
 
  {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
{{APIComment|'Connect to the Synthesis repository.}}
MyRepository.ConnectToOracleRepository({{APIString|"OraclePort"}}, {{APIString|"OracleService"}},{{APIString|"OracleHost"}}, {{APIString|"OracleSchema"}}, {{APIString|"OraclePassword"}})
  Dim Success As Boolean
  Success = MyRepository.ConnectToOracleRepository("OraclePort", "OracleService",  
    "OracleHost", "OracleSchema", "OraclePassword")

Latest revision as of 21:54, 13 November 2015

APIWiki.png


Member of: SynthesisAPI.Repository


Connects to an Oracle repository. Returns a Boolean value; when true, indicates a successful connection to the repository.

Syntax

.ConnectToOracleRepository(Port, Service, Host, Schema, Password)

Parameters

Port

Required. Integer. The server port for the Oracle repository.

Service

Required. String. The repository service identifier.

Host

Required. String. The repository host identifier.

Schema

Required. String. The repository schema.

Password

Required. String. The repository password or the Windows login password used for access to the database.


Example

VBA|VB.NET

Dim MyRepository As New Repository
MyRepository.ConnectToOracleRepository("OraclePort", "OracleService","OracleHost", "OracleSchema", "OraclePassword")