XMLTOCURSOR('oStream', "MyCursorName", 1028) && is wrong XMLTOCURSOR(oStream.ReadText, "MyCursorName", 1028) && is the good line.This is working!
oConnection = NEWOBJECT("ADODB.Connection") oStream = NEWOBJECT("ADODB.Stream") oConnection.Provider = "SQLOLEDB.1" oConnection.ConnectionString = ; "Persist Security Info=False;User ID=sa;"+; "Initial Catalog=Shipping;Data Source=FS01" oConnection.open oRecordSet = NEWOBJECT("ADODB.RecordSet") lSelect = "SELECT * FROM CUSTOMER" oRecordSet.Open(lSelect, oConnection) oRecordSet.Save(oStream, 1) && here i save the RS in XML in the oStream XMLTOCURSOR(oStream.ReadText, "MyCursorName", 1028) && Here Transform to cursor * Release objects SELECT MyCursorName BROWSEWith a table of 40 records there is no problem. I have some tests to do with bigger tables today.