>rs = loConn.Execute(m.ldapStr) >do while !rs.eof > store "" to lcCN, lcsAMAccountName, lcDepartment, lcEMail > oUser = getobject(rs.fields(0).value) > lcCN = upper(nvl(m.oUser.cn,"")) > lcsAMAccountName = upper(nvl(m.oUser.sAMAccountName,"")) > lcDepartment = upper(nvl(m.oUser.department,"")) > lcPhoneNo = upper(nvl(m.oUser.telephoneNumber,"")) > insert into (m.tcCursorName) (cFullName, cuserid, cDepartment, cPhone) ; > values (m.lcCN, m.lcsAMAccountName, m.lcDepartment, m.lcPhone) > rs.MoveNext() >enddo>
use (m.tcCursorName) again alias myCursor shared in 0 ... insert into myCursor.....Anyways, I believe the GetObject is slowing down the execution, so I doubt this would have any impact