PrepAway - Latest Free Exam Questions & Answers

Category: 1D0-430

Exam 1D0-430: CIW Application Developer

Why is the ActiveX object being used?

Consider the following code:
<%
DimloConn, lsSQL, loRs
Set loConn = CreateObject(“ADODB.Connection”)
loConn.Open(“DSN=myDSN;UID=something;PWD=Something;”)
lsSQL = “INSERT INTO tMembers (MemberName) VALUES (‘Manohar’);” &_
“SELECT @@IDENTITY AS NewID;”
Set loRs = loConn.Execute(lsSQL)
Set loRs = loRs.NextRecordSet()
IIID = loRs.Fields(“NewID”).value
loConn.Close()
Set loConn = Nothing
%>
Why is the ActiveX object being used?


Page 6 of 14« First...45678...Last »