Golang Tutorials - Learn Go Programming with Easy Step-by-Step Guides

Explore comprehensive Golang tutorials for beginners and advanced programmers. Learn Go programming with easy-to-follow, step-by-step guides, examples, and practical tips to master Go language quickly.

Ado Property in ASP

Ado Property in ASP

In Classic ASP, when working with ADO (ActiveX Data Objects), properties are attributes of ADO objects like Connection, Recordset, or Command that define their behavior or provide information.


? Common ADO Properties in ASP

1. Connection Object Properties

PropertyDescription
.ConnectionStringThe connection string used to connect to the DB
.StateReturns connection state (0=closed, 1=open)
.TimeoutTime in seconds before connection times out
Response.Write "Connection State: " & conn.State

2. Recordset Object Properties

PropertyDescription
.EOFTrue if cursor is past the last record
.BOFTrue if cursor is before the first record
.FieldsCollection of fields (columns) in current record
.RecordCountNumber of records in the recordset (may be -1 if unsupported)
.CursorTypeCursor behavior (e.g., static, dynamic)
.LockTypeLocking behavior (read-only, optimistic, pessimistic)
If Not rs.EOF Then    Response.Write rs.Fields("Name").ValueEnd If

3. Command Object Properties

PropertyDescription
.CommandTextSQL query or stored procedure name
.CommandTypeType of command (text, stored proc, table direct)
.ActiveConnectionThe connection object the command runs against
.ParametersCollection of parameters

Example: Check Recordset EOF Property

If rs.EOF Then    Response.Write "No records found."Else    Response.Write "Records found."End If

Summary

  • Properties provide info or control object behavior.

  • Access with dot notation, e.g., object.Property.

  • Use them to check state, get metadata, or control actions.


Want me to show examples for specific ADO object properties or how to set some?

Disclaimer for AI-Generated Content:
The content provided in these tutorials is generated using artificial intelligence and is intended for educational purposes only.
html
docker
php
kubernetes
golang
mysql
postgresql
mariaDB
sql