OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Anuga Laxmi Kanth Reddy (areddy2BAAN.COM)
Date: Thu Jun 13 2002 - 23:11:11 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    using ADO, you can achieve this by....

    saving the recordset into a stream with persistXML option and finally
    reading the stream to get XML string of the recordset

    <code sample in VB>

    dim objRS as ADODB.Recordset
    dim objStream as ADODB.Stream
    dim sXMLRecordset as String

    ' initialization and other stuff..
    :
    :
    ' read the data in objRS'

    call objRS.save(objStream, adPersistXML)
    sXMLRecordset = objStream.ReadText

    :::
    :
    ;

    ----------------------------------------------------------------
    Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    contains important info. Save time, search the archives at
    http://discuss.microsoft.com/archives/index.html .
    To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM