Repository.ConnectToOracleRepository: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) |
Alex Ulanov (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Template:APIClass|Repository Class|Repository}} | {{Template:APIClass|Repository Class|Repository}} | ||
{{Template:Repository.ConnectToOracleRepository | {{Template:Repository.ConnectToOracleRepository.Cmt}} | ||
== Syntax == | == Syntax == | ||
*ConnectToOracleRepository( Port {{APIPrefix|As Integer}}, Service {{APIPrefix|As String}}, Host {{APIPrefix|As String}}, Schema {{APIPrefix|As String}}, Password {{APIPrefix|As String}}){{APIPrefix|As Boolean}} | *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}} | ||
Parameters | Parameters | ||
Line 15: | Line 15: | ||
:''Password'': The repository password. (Your Windows login credentials are used for access to the database; use your Windows password.) | :''Password'': The repository password. (Your Windows login credentials are used for access to the database; use your Windows password.) | ||
{{Template:BooleanReturn.Cmt}} | |||
== Usage Example == | == Usage Example == | ||
Line 22: | Line 24: | ||
{{APIComment|'Connect to the Synthesis repository.}} | {{APIComment|'Connect to the Synthesis repository.}} | ||
Dim Success As Boolean | Dim Success As Boolean | ||
Success = MyRepository.ConnectToOracleRepository("OraclePort", "OracleService", | Success = MyRepository.ConnectToOracleRepository("OraclePort", "OracleService", | ||
"OracleHost", "OracleSchema", "OraclePassword") | "OracleHost", "OracleSchema", "OraclePassword") |
Revision as of 17:25, 20 May 2015
Connects to an Oracle repository.
Syntax
- ConnectToOracleRepository(ByVal Port As Integer, ByVal Service As String, ByVal Host As String, ByVal Schema As String, ByVal Password As String)As Boolean
Parameters
- Port: The server port for the Oracle repository.
- Service: The repository service identifier.
- Host: The repository host identifier.
- Schema: The repository schema.
- Password: The repository password. (Your Windows login credentials are used for access to the database; use your Windows password.)
Returns True if successful, otherwise returns False.
Usage Example
'Declare a new repository connection object. Dim MyRepository As New Repository 'Connect to the Synthesis repository. Dim Success As Boolean Success = MyRepository.ConnectToOracleRepository("OraclePort", "OracleService", "OracleHost", "OracleSchema", "OraclePassword")