git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.RemObjects@2 b6239004-a887-0f4b-9937-50029ccdca16
45 lines
1.4 KiB
HTML
45 lines
1.4 KiB
HTML
<html>
|
|
<head>
|
|
<link rel="stylesheet" type="text/css" href="..\styles.css">
|
|
</head>
|
|
<body>
|
|
<img src="..\..\da.png" alt="" align="right">
|
|
|
|
<!-------------------------------------------------------------------------->
|
|
|
|
<p class="h1">
|
|
<span>Connection By User</span>
|
|
</p>
|
|
<h2>Purpose</h2>
|
|
<p>
|
|
Shows various methods how a standard application (i.e. not a RemObjects server or
|
|
client) can obtain a database connection at runtime.
|
|
<br />
|
|
The application uses four Data Abstract components: <strong>TDAADODriver</strong>,
|
|
<strong>TDADriverManager</strong>, <strong>TDAConnectionManager</strong> and <strong>
|
|
TROInMemorySessionManager</strong>.</p>
|
|
<ul>
|
|
<li>
|
|
<b>Acquire #1</b> : one-liner to open default connection
|
|
</li>
|
|
<li>
|
|
<b>Acquire #2</b> : delayed open after supplying userid/pass separately
|
|
</li>
|
|
<li>
|
|
<b>Acquire #3</b> : one-liner supplying userid/pass
|
|
</li>
|
|
<li><strong>Acquire #4</strong> : connect via the <strong>DADriverManager</strong> </li>
|
|
<li>
|
|
<b>Acquire and Hold in a Session</b> : explore this method to see how to
|
|
create,
|
|
access and release a connection within a session.
|
|
</li>
|
|
</ul>
|
|
<p>
|
|
All tests above connect via the <strong>DAConnectionManager </strong>except for<strong>
|
|
#4.</strong></p>
|
|
|
|
<!-------------------------------------------------------------------------->
|
|
</body>
|
|
</html>
|