Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Conn.BeginTrans
Conn.Execute someSQL
Conn.Execute someOtherSQL
Conn.Execute someOtherOtherSQL
Conn.CommitTrans
Conn.RollbackTrans
IF Conn.Errors.Count = 0 THEN
Conn.CommitTrans
ELSE
Conn.RollbackTrans
END IF
<%
dim objRst
dim strProvider
dim strQuery
strProvider =
set objRst = Server.CreateObject("ADODB.Recordset")
objRst.CursorLocation = 3
objRst.CursorType = 3
strQuery = "SELECT * FROM sometable"
objRst.Open strQuery, strProvider
set objRst.ActiveConnection = Nothing
%>
<%
WHILE NOT objRst.EOF
Response.Write objRst("somefield")
objRst.MoveNext
WEND
objRst.MoveFirst ' Moves the Pointer back to the top
objRst.MoveLast ' Moves the Pointer to the end
objRst.Find "somefield = 'somevalue'" ' Finds a record
objRst.Filter = "somefield = 'somevalue'" ' Filters the set
WHILE NOT objRst.EOF
Response.Write objRst("somefield") ' Loops filtered set
objRst.MoveNext
WEND
objRst.Filter = 0 ' Removes the filter
%>
<%
dim Conn
dim strQuery
dim strProvider
strProvider = your conn string or dsn
strQuery = "INSERT INTO table (field1,field2) VALUES (value1,value2)"
Conn.Open strProvider
Conn.Execute strQuery
Conn.Close
set Conn = Nothing
%>
<%
strQuery = "UPDATE table SET field1 = value1, field2 = value2 WHERE somefield = somevalue"
strQuery = "DELETE FROM table WHERE somefield = somevalue"
%>