转至繁体中文版     | 网站首页 | 图文教程 | 资源下载 | 站长博客 | 图片素材 | 武汉seo | 武汉网站优化 | 
最新公告:     敏韬网|教学资源学习资料永久免费分享站!  [mintao  2008年9月2日]        
您现在的位置: 学习笔记 >> 图文教程 >> 站长学院 >> Web开发 >> 正文
ADO enumeration constants         ★★★★
adAsyncConnect 16 Opens the connection asynchronously. The ConnectComplete event may be used to determine when the connection is available. adConnectUnspecified -1 Default. Opens the connection synchronously.

Specifies whether the Open method of a Connection object should return after (synchronously) or before (asynchronously) the connection is established.

connection.Open ConnectionString, UserID, Password, Options

ConnectPromptEnum
   adPromptAlways 1 Prompts always. adPromptComplete 2 Prompts if more information is required. adPromptCompleteRequired 3 Prompts if more information is required but optional parameters are not allowed. adPromptNever 4 Never prompts.

Specifies whether a dialog box should be displayed to prompt for missing parameters when opening a connection to a data source.

connection.Properties("Prompt") = adPromptNever

Recordset object
 
CursorLocationEnum
   adUseClient 3 Uses client-side cursors supplied by a local cursor library. Local cursor services often will allow many features that driver-supplied cursors may not, so using this setting may provide an advantage with respect to features that will be enabled. For backward compatibility, the synonym adUseClientBatch is also supported. adUseNone 1 Does not use cursor services. (This constant is obsolete and appears solely for the sake of backward compatibility.) adUseServer 2 Default. Uses data-provider or driver-supplied cursors. These cursors are sometimes very flexible and allow for additional sensitivity to changes others make to the data source. However, some features of the Microsoft Cursor Service for OLE DB (such as disassociated Recordset objects) cannot be simulated with server-side cursors and these features will be unavailable with this setting.

Specifies the location of the cursor service.

recordset.CursorLocation = adUseClient

CursorTypeEnum
   adOpenDynamic 2 Uses a dynamic cursor. Additions, changes, and deletions by other users are visible, and all types of movement through the Recordset are allowed, except for bookmarks, if the provider doesn''''t support them. adOpenForwardOnly 0 Default. Uses a forward-only cursor. Identical to a static cursor, except that you can only scroll forward through records. This improves performance when you need to make only one pass through a Recordset. adOpenKeyset 1 Uses a keyset cursor. Like a dynamic cursor, except that you can''''t see records that other users add, although records that other users delete are inaccessible from your Recordset. Data changes by other users are still visible. adOpenStatic 3 Uses a static cursor. A static copy of a set of records that you can use to find data or generate reports. Additions, changes, or deletions by other users are not visible. adOpenUnspecified -1 Does not specify the type of cursor.

Specifies the type of cursor used in a Recordset object.

recordset.CursorType = adOpenDynamic

LockTypeEnum
   adLockBatchOptimistic 4 Indicates optimistic batch updates. Required for batch update mode. adLockOptimistic 3 Indicates optimistic locking, record by record. The provider uses optimistic locking, locking records only when you call the Update method. adLockPessimistic 2 Indicates pessimistic locking, record by record. The provider does what is necessary to ensure successful editing of the records, usually by locking records at the data source immediately after editing. adLockReadOnly 1 Indicates read-only records. You cannot alter the data. adLockUnspecified -1 Does not specify a type of lock. For clones, the clone is created with the same lock type as the original.

Specifies the type of lock placed on records during editing.

recordset.LockType = adLockReadOnly

Command object
 
ParameterDirectionEnum
   adParamInput 1 Default. Indicates that the parameter represents an input parameter. adParamInputOutput 3 Indicates that the parameter represents both an input and output parameter. adParamOutput 2 Indicates that the parameter represents an output parameter. adParamReturnValue 4 Indicates that the parameter represents a return value. adParamUnknown 0 Indicates that the parameter direction is unknown.

Specifies whether the Parameter represents an input parameter, an output parameter, both an input and an output parameter, or the return value from a stored procedure.

command.Parameters(1).Direction = adParamInput

Miscallenous
 
CommandTypeEnum
   adCmdUnspecified -1 Does not specify the command type argument. adCmdText 1 Evaluates CommandText as a textual definition of a command or stored procedure call. adCmdTable 2 Evaluates CommandText as a table name whose columns are all returned by an internally generated SQL query. adCmdStoredProc 4 Evaluates CommandText as a stored procedure name. adCmdUnknown 8 Default. Indicates that the type of command in the CommandText property is not known. adCmdFile 256 Evaluates CommandText as the file name of a persistently stored Recordset. Used with Recordset.Open or Requery only. adCmdTableDirect 512 Evaluates CommandText as a table name whose columns are all returned. Used with Recordset.Open or Requery only. To use the Seek method, the Recordset must be opened with adCmdTableDirect.

Specifies how a command argument should be interpreted.

Set recordset = command.Execute (RecordsAffected, Parameters, Options)
-or-
command.Execute RecordsAffected, Parameters, Options
-or-
command.CommandType = adCmdStoredProc
-or-
connection.Execute CommandText, RecordsAffected, Options
-or-
Set recordset = connection.Execute (CommandText, RecordsAffected, Options)
-or-
recordset.Open Source, ActiveConnection, CursorType, LockType, Options
-or-
recordset.Requery Options

ExecuteOptionEnum
   adAsyncExecute 16 Indicates that the command should execute asynchronously. adAsyncFetch 32 Indicates that the remaining rows after the initial quantity specified in the property should be retrieved asynchronously. adAsyncFetchNonBlocking 64 Indicates that the main thread never blocks while retrieving. If the requested row has not been retrieved, the current row automatically moves to the end of the file.

If you open a Recordset from a Stream containing a persistently stored Recordset, adAsyncFetchNonBlocking will not have an effect; the operation will be synchronous and blocking.

adAsynchFetchNonBlocking has no effect when the adCmdTableDirect option is used to open the Recordset.

adExecuteNoRecords 128 Indicates that the command text is a command or stored procedure that does not return rows (for example, a command that only inserts data). If any rows are retrieved, they are discarded and not returned.

adExecuteNoRecords can only be passed as an optional parameter to the Command or Connection Execute method.

adExecuteStream 1024 Indicates that the results of a command execution should be returned as a stream.

adExecuteStream can only be passed as an optional parameter to the Command Execute method.

adExecuteRecord 2048 Indicates that the CommandText is a command or stored procedure that returns a single row which should be returned as a Record object. adOptionUnspecified -1 Indicates that the command is unspecified.

Specifies how a provider should execute a command. This is the values that the options parameter in an execute command accept

Set recordset = command.Execute (RecordsAffected, Parameters, Options)
-or-
command.Execute RecordsAffected, Parameters, Options
-or-
command.CommandType = adCmdStoredProc
-or-
connection.Execute CommandText, RecordsAffected, Option

[1] [2]  下一页


[VB.NET程序]ADO 在informix的 Addnew  [VB.NET程序]ADO 的测试
[VB.NET程序]ADO 揭密 1  [Web开发][ADO]如何修改ADO的线程模型
[Web开发]Delphi7下仿Ado.Net类的实现  [Web开发]通过COM使用ADO
[Web开发]ADO & ADO.NET中使用存储过程的两个共用的函数  [Web开发]Binding a DataGrid to an ADO Recordset
[Web开发]ADOCE for ADO Programmers  [Web开发]Delphi多线程下的ADO编程

ADO enumeration constants

作者:闵涛 文章来源:闵涛的学习笔记 点击数:1766 更新时间:2009/4/23 10:46:10
ADO enumeration constants

Each of this enum constants are defined in ADO.
Click each enum below to show its constants, values and description.  
 
Connection object
 
ConnectOptionEnum
  
Constant Value Description Constant Value Description Constant Value Description Constant Value Description Constant Value Description Constant Value Description Constant Value Description Constant Value Description
教程录入:mintao    责任编辑:mintao 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网]
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    同类栏目
    · Web开发  · 网页制作
    · 平面设计  · 网站运营
    · 网站推广  · 搜索优化
    · 建站心得  · 站长故事
    · 互联动态
    更多内容
    热门推荐 更多内容
  • 没有教程
  • 赞助链接
    更多内容
    闵涛博文 更多关于武汉SEO的内容
    500 - 内部服务器错误。

    500 - 内部服务器错误。

    您查找的资源存在问题,因而无法显示。

    | 设为首页 |加入收藏 | 联系站长 | 友情链接 | 版权申明 | 广告服务
    MinTao学以致用网

    Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved.
    闵涛 投放广告、内容合作请Q我! E_mail:admin@mintao.net(欢迎提供学习资源)

    站长:MinTao ICP备案号:鄂ICP备11006601号-18

    闵涛站盟:医药大全-武穴网A打造BCD……
    咸宁网络警察报警平台