< %
’ ************ 定義常量 *******************
’
Const adParamUnknown = & H
Const adParamInput = & H
Const adParamOutput = & H
Const adParamInputOutput = & H
Const adParamReturnValue = & H
’
Const adCmdUnknown = & H
Const adCmdText = & H
Const adCmdTable = & H
Const adCmdStoredProc = & H
Const adCmdFile = & H
Const adCmdTableDirect = & H
’
Const adEmpty =
Const adTinyInt =
Const adSmallInt =
Const adInteger =
Const adBigInt =
Const adUnsignedTinyInt =
Const adUnsignedSmallInt =
Const adUnsignedInt =
Const adUnsignedBigInt =
Const adSingle =
Const adDouble =
Const adCurrency =
Const adDecimal =
Const adNumeric =
Const adBoolean =
Const adError =
Const adUserDefined =
Const adVariant =
Const adIDispatch =
Const adIUnknown =
Const adGUID =
Const adDate =
Const adDBDate =
Const adDBTime =
Const adDBTimeStamp =
Const adBSTR =
Const adChar =
Const adVarChar =
Const adLongVarChar =
Const adWChar =
Const adVarWChar =
Const adLongVarWChar =
Const adBinary =
Const adVarBinary =
Const adLongVarBinary =
Const adChapter =
Const adFileTime =
Const adPropVariant =
Const adVarNumeric =
Const adArray = & H
Dim rs
Set cmd = Server
Set cn = Server
’ 此處連接的是SQL Server
cn
With cmd
Set rs =
End With
While Not rs
Response
rs
Wend
Set cmd = Nothing
Set rs = Nothing
Set cn = Nothing
% >
也可以寫出下面的格式
Dim rs
Set cmd = Server
Set cn = Server
’ 此處連接的是SQL Server
cn
With cmd
Set rs =
End With
While Not rs
Response
rs
Wend
From:http://tw.wingwit.com/Article/program/net/201311/14253.html