Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7163557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:55:22+00:00 2026-05-28T13:55:22+00:00

Background: Included so people don’t ask Why on earth I am doing this! I

  • 0

Background:
Included so people don’t ask Why on earth I am doing this!

I have converted an ancient extremely long winded and complex stored procedure to .NET code as a huge update was required and all functionality was in the stored procedure and was far to complicated to update.

This stored procedure was consumed by classic ASP in multiple places within the website.

Requirement
I now need to send the results of this new piece of .NET code back to classic asp as a recordset
I intend on doing this by webservice

What I have so Far
So far I have worked out that I can actually create a recordset in .NET like so

 ADODB.Recordset rs = new Recordset();

and then return it as an xml string to asp (I have not tested this yet)

rs.Save(streamObj, PersistFormatEnum.adPersistXML);
// Get the string (XML) of the recordset
string outputXml = streamObj.ReadText(str.Size);
return outputXml;

In the asp I will then use this function which I found here in the asp to convert the xml back to a recordset

Public Function RecordsetFromXMLString(sXML As String) As Recordset
    Dim oStream As ADODB.Stream
    Set oStream = New ADODB.Stream
    oStream.Open
    oStream.WriteText sXML   'Give the XML string to the ADO Stream
    oStream.Position = 0    'Set the stream position to the start
    Dim oRecordset As ADODB.Recordset
    Set oRecordset = New ADODB.Recordset
    oRecordset.Open oStream    'Open a recordset from the stream
    oStream.Close
    Set oStream = Nothing
    Set RecordsetFromXMLString = oRecordset  'Return the recordset
    Set oRecordset = Nothing
End Function

The bit that’s puzzling me
In my .NET I have a generic list that contains all the data that needs to be returned.
How do I get this in my recordset?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:55:23+00:00Added an answer on May 28, 2026 at 1:55 pm

    You can checkout below link which explains converting RecordSet to Generic list and do the reverse.

    http://app-code.net/wordpress/?p=417

    Convert LIst to Datatable
    .NET – Convert Generic Collection to DataTable

    You can Convert DataTable to RecordSet
    http://www.codeproject.com/Articles/10503/Simplest-code-to-convert-an-ADO-NET-DataTable-to-a

    Please check this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background Our Eclipse RCP 3.6-based application lets people drag files in for storage/processing. This
Background: I would like to dismiss a modalView that I have presented earlier and
Little background: this is an absolute beginner's website. I am a Film major haha
Background: I have a css and a js that is used only by the
Background While running benchmark tests this morning, my colleagues and I discovered some strange
Some Background: I have a VS 2008 Deployment project I am not using the
In my project I've included an interactive map, similar to this one : http://davidlynch.org/js/maphilight/docs/demo_usa.html
Background: We're using a 3rd party tool in our .NET C# solution. This tool
I have included a stylesheet in my html to display the page in a
First some background information: We have three environments for our EJB3 application: test, development

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.