ADO State Ananin

Tasi da koyi

Ananin State zai iyalan birin ce gani zai iyalan obyekta yake yake kai, zuri, a bai kaiwai, a bai aiki, ko a bai aiki data. Ananin zai iyalan ObjectStateEnum Mutumma. Ananin mutumma zai adStateClosed.

Ananin zai iyalan Command, Connection, Record, Recordset da Stream obyekta.

The State property can be a combination of values. For example, if an operation is being executed, this property will have a combination value of adStateOpen and adStateExecuting.

The State property is read-only.

Syntax

object.State

Instance

For Command Object:

<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/webdata/northwind.mdb"
set comm=Server.CreateObject("ADODB.Command")
response.write(comm.State)
conn.close
%>

For Connection Object:

<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/webdata/northwind.mdb"
response.write(conn.State)
conn.close
%>