Componentes.Terceros.RemObj.../official/5.0.24.615/Data Abstract for Delphi/Samples/Connection By User/ConnectionByUser.Sample.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:&nbsp; <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>&nbsp;</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>