Repository.ConnectToSQLRepository: Difference between revisions
Jump to navigation
Jump to search
John Leavitt (talk | contribs) No edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
(25 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{Template: | {{Template:API}}{{Template:APIBreadcrumb|.[[Repository Class|Repository]]}} | ||
{{ | <onlyinclude>Connects to a SQL Server repository. Returns a '''Boolean''' value; when true, indicates a successful connection to the repository.</onlyinclude> | ||
== Syntax == | |||
'''.ConnectToSQLRepository'''(''ServerName'', ''DatabaseName'', ''UseImpersonation'', ''ImpersonateDomain'', ''ImpersonateUsername'', ''ImpersonatePassword'') | |||
===Parameters=== | |||
''ServerName'' | |||
:Required. String. The name of the SQL Server. | |||
''DatabaseName'' | |||
:Required. String. The name of the database. | |||
''UseImpersonation'' | |||
:Optional. Boolean. Indicates whether the database requires impersonation. Default value = False. | |||
''ImpersonateDomain'' | |||
:Optional. String. The domain for the impersonation. | |||
''ImpersonateUsername'' | |||
:Optional. String. The account username for the impersonation. | |||
''ImpersonatePassword'' | |||
:Optional. String. The account password for the impersonation. | |||
==Example== | |||
'''VB|VB.NET''' | |||
{{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository | |||
MyRepository.ConnectToSQLRepository({{APIString|"MyServer"}}, {{APIString|"MyDatabase"}}) |
Latest revision as of 16:18, 17 June 2016
Member of: SynthesisAPI.Repository
Connects to a SQL Server repository. Returns a Boolean value; when true, indicates a successful connection to the repository.
Syntax
.ConnectToSQLRepository(ServerName, DatabaseName, UseImpersonation, ImpersonateDomain, ImpersonateUsername, ImpersonatePassword)
Parameters
ServerName
- Required. String. The name of the SQL Server.
DatabaseName
- Required. String. The name of the database.
UseImpersonation
- Optional. Boolean. Indicates whether the database requires impersonation. Default value = False.
ImpersonateDomain
- Optional. String. The domain for the impersonation.
ImpersonateUsername
- Optional. String. The account username for the impersonation.
ImpersonatePassword
- Optional. String. The account password for the impersonation.
Example
VB|VB.NET Dim MyRepository As New Repository MyRepository.ConnectToSQLRepository("MyServer", "MyDatabase")