Results 1 to 5 of 5

Thread: how to send recordset object using Winsock control !

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    13

    how to send recordset object using Winsock control !

    i m using Winsock control in my client/server application using vb6. from the server machine i m trying to send the recordset object to the client machine. on the client machine i pass this object to the data source property of the report object. this thing is not happening. can any one plz help me. how i can send the recordset object from the server machine to the client.
    thanx
    ROAMER

  2. #2

    Re: how to send recordset object using Winsock control !

    Are these machines seperated by the internet? you may want to transfer them as XML or open up firewall ports to allow them to communicate
    Luke Richey, MCSE
    Tometa Software, Inc.
    http://www.tometasoftware.com/
    Get stress relief at http://www.mrtometahead.com

  3. #3
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: how to send recordset object using Winsock control !

    I just read the data from the recordset and write it in a PropertyBag, then I send the property bag to the client. Then I just read the data from the PropertyBag at the client side.

  4. #4
    Fanatic Member MikkyThomeon's Avatar
    Join Date
    Oct 2002
    Location
    At work...
    Posts
    648

    Re: how to send recordset object using Winsock control !

    Somewhat outdated this thread is, but I still develop some things in VB6...
    Attached Files Attached Files

  5. #5
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: how to send recordset object using Winsock control !

    The standard way to do this is to Save the Recordset to an ADO Stream object in either native ADTG or ADO XML format. You can then Read the contents of the Stream into a Byte array or ReadText it into a String. Then send this.

    Reverse the process at the other end.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width