Repository.ConnectToOracleRepository: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 29: Line 29:


== Parameters ==
== Parameters ==
'''ServerName'''
'''Port'''
The server file path for the SQL Repository.
The server port for the Oracle Repository.


'''DatabaseName'''
'''Service'''
The Database name of the Synthesis Repository to connect.
The Oracle Database name for the Synthesis Repository to connect.


'''UseImpersonation'''
'''Host'''
The database requires impersonation.
The Oracle Host name.


'''ImpersonateDomain'''
'''Schema'''
The domain for the impersonation.
The Oracle Schema.


'''ImpersonateUsername'''
'''Password'''
The User Name for the impersonation.
The Password for the database.
 
'''ImpersonatePassword'''
The Password for the impersonation.


== Usage Example ==
== Usage Example ==
Line 54: Line 51:
{{APIComment|Connect to the Synthesis repository.}}
{{APIComment|Connect to the Synthesis repository.}}
         Dim Success As Boolean = False
         Dim Success As Boolean = False
         Success = MyRepository.ConnectToSQLRepository("SQLServerPath", "SQLDatabaseName")
         Success = MyRepository.ConnectToOracleRepository("OraclePort", "OracleService", "OracleHost", "OracleSchema", "OraclePassword")

Revision as of 21:35, 17 September 2013



Property Syntax

Public Function ConnectToOracleRepository( ByVal Port As Integer , ByVal Service As String , ByVal Host As String , ByVal Schema As String , ByVal Password As String ) As Boolean
Connects to an Oracle repository.

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.

       Private WithEvents MyRepository As New Repository

Connect to the Synthesis repository.

       Dim Success As Boolean = False
       Success = MyRepository.ConnectToOracleRepository("OraclePort", "OracleService", "OracleHost", "OracleSchema", "OraclePassword")