ADO Connection Object
Connection object
ADO Connection object wordt gebruikt om een open verbinding naar een bepaalde datasource te maken. Via deze verbinding kunt u toegang krijgen tot en operaties uitvoeren op een database.
If you need to access a database multiple times, you should use a Connection object to establish a connection. You can also create a connection by passing a connection string through a Command or Recordset object. However, such connections are only suitable for a specific simple query.
ProgID
set objConnection=Server.CreateObject("ADODB.connection")
Properties
Properties |
Beschrijving |
Attributes |
Set or return the properties of the Connection object. |
CommandTimeout |
Indicate the time to wait before executing the command, before termination attempts and errors occur. |
ConnectionString |
Set or return the details information of the data source used to establish the connection. |
ConnectionTimeout |
Indicate the time waited during the establishment of the connection before termination attempts and errors occur. |
CursorLocation |
Set or return the location of the cursor service. |
DefaultDatabase |
Indicate the default database of the Connection object. |
IsolationLevel |
Indicate the isolation level of the Connection object. |
Mode |
Set or return the access permissions of the provider. |
Provider |
Set or return the name of the provider of the Connection object. |
State |
Return a value describing whether the connection is open or closed. |
Version |
Return the version number of ADO. |
Method
Method |
Beschrijving |
BeginTrans |
Start a new transaction. |
Cancel |
Cancel an execution. |
Close |
Close a connection. |
CommitTrans |
Save any changes and end the current transaction. |
Execute |
Execute queries, SQL statements, stored procedures, or specific text of the provider. |
Open |
Open a connection. |
OpenSchema |
Return schema information about the data source from the provider. |
RollbackTrans |
Cancel any changes made in the current transaction and end the transaction. |
Event
Note: You cannot use VBScript or JScript to handle events (only Visual Basic, Visual C++ and Visual J++ languages can handle events).
Collectie
Collectie |
Beschrijving |
Fouten |
Alle Error Objecten die Connection Objecten bevatten. |
Eigenschappen |
Alle Property Objecten die Connection Objecten bevatten. |