Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

Handling ResultSet data in ASP

I have declared a database connection as follows

Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "..."
RS = Conn.Execute("SQL")

This returns a resultset object as expected, what I am looking for is a way to query the resultset further to get more accurate results within my asp page. Is this possible - I imagine the modern day equivalent is something like LINQ? If not can I get the resultset into another object type that is easier to query.
0
Blowfelt82
Asked:
Blowfelt82
1 Solution
 
Ersoy HasanCommented:
I think you can use .Filter method for a recordset variable.
Something like this :
rs.Filter="Lastname='Smith'"

Open in new window

0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
the best way to filter it would be directly in the sql:

select from table where field = 'xxx'
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now