Professional Documents
Culture Documents
29
Session Objectives
29
Understanding ODBC
Understanding ODBC
I know how to
interact with
ODBC
I know how to
interact with
ODBC
I know how to
interact with
ODBC
Oracle
MS Access
DB2
ODBC
29
Understanding OLE DB
29
Understanding OLE DB
MS Access
Oracle
Index Server
SQL
Server
Oracle
DB2
ODBC
OLE DB
29
10
Microsoft Standard
A programming interface providing data
access to programming languages such as
VBScript or JavaScript
connection
recordset
command
errors
29
11
methods properties
objects
recordset
command
errors
open
execute
close
bof
eof
commandtext
count
item
open
movefirst
movenext
close
execute
29
12
to Database
Retrieve
Manipulate
data
web server
On database server connected to web
server (n-tier)
29
13
Connecting to Data
asp
web
server
database
server
ADO connection
SQL
Internet
html
html
29
14
Connection Object
Methods
Open(conString,
user, pass)
Close()
Execute(strSQL)
Properties
ConnectionTimeout
ConnectionString
29
15
ADO Connections
DSN
ODBC DSN-less
OLE DB
29
16
17
18
asp
ado
odbc
data
OLE DB Connections
OLE DB
Microsoft
Recordset Object
Methods
AddNew()
Delete()
Update()
Open()
Close
MoveFirst()
MoveLast()
MoveNext()
MovePrevious
Properties
BOF
EOF
AbsolutePage
AbsolutePosition
PageCount
PageSize
RecordCount
Constant
Value
Description
adCmdUnknown
Default
adCmdText
adCmdTable
Name of Table
adCmdStoreProc
21
Dim objRs
Set objRs = Server.CreateObject(ADODB.Recordset)
objRs.Open(tblCustomer, objConn, , , adCmdTable)
29
22
eShopping Example
29
23
24
Name
25
26
Value Property
27
Benefits
28
Case Study
Using
Session Variables
Filling a Combo
Showing a Selected Record
Making And Saving Changes
Adding a New Record
Finding an Existing Record
Recordset Paging
Thanks for listening
29
29