Componentes.Terceros.RemObj.../internal/5.0.35.741/1/Data Abstract for Delphi/Samples/Custom User Logon/CustomUserLogon.Sample.html
2009-02-28 17:16:16 +00:00

51 lines
1.3 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>Custom User Logon</span>
</p>
<h2>Purpose</h2>
<p>
A very simple example showing two methods of opening a connection at runtime.
</p>
<ul>
<li>
<b>Open Connection (1st way)</b>: creates and opens the connection in a
single
call passing the UserID/Password values supplied.
</li>
<li>
<b>Open Connection (2nd way)</b>: creates the connection and opens it afterwards.
</li>
</ul>
<p>
The example uses <b>DAConnectionManager.Connections[0]</b> as the connection
it opens. Examining its <b>ConnectionString</b> value via the Object Inspector,
you will see that it is set to:
</p>
<p>
&nbsp;
</p>
<p class="contents">
<b>ADO?AuxDriver=SQLOLEDB.1;Server=localhost;Database=Northwind;Integrated Security=SSPI;</b>
</p>
<p>
&nbsp;
</p>
<p>
Modify it as needed to access a different database. See <a href="http://www.remobjects.com/faq/?id={436F10F8-C743-411F-966E-6150B6D3ADF8}">FAQ37</a>
for examples of connection strings.
</p>
<!-------------------------------------------------------------------------->
</body>
</html>