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

  • Home
  • SEARCH
  • 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 53301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:02:31+00:00 2026-05-10T17:02:31+00:00

I have a ASP.Net page using ADO to query MS access database and as

  • 0

I have a ASP.Net page using ADO to query MS access database and as a learning exercise i would like to incorporate LINQ. I have one simple table called Quotes.

The fields are: QuoteID, QuoteDescription, QuoteAuthor, QuoteDate. I would like to run simple queries like, ‘Give me all quotes after 1995’.

How would i incorporate LINQ into this ASP.Net site (C#)

Basically, my question is does LINQ work for MS Access ??

  • 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. 2026-05-10T17:02:32+00:00Added an answer on May 10, 2026 at 5:02 pm

    LINQ to SQL doesn’t support Access (that is, there’s no Access/Jet provider for LINQ), but you can query a DataSet with LINQ. This means that you fill your DataSet with any possible data from your database that you might need in your results, and then you filter on the client side. After you have a typed DataSet, and you Fill() it with a TableAdapter, you do something like this:

    var year = 1995;  // you can pass the year into a method so you can filter on any year var results = from row in dsQuotes               where row.QuoteDate > year               select row; 

    You’ll have to decide whether this is worth it. You’d have to fill your DataSet with all the quotes, then use LINQ to filter on just those quotes that are after 1995. For a small amount of data, sure, why not? But for a very large amount of data, you’ll need to make sure it won’t be too slow.

    If you’re using a DataSet, though, you can write custom queries that become new TableAdapter methods. So you can put the correct SQL for your query in a FillByYear() method in your TableAdapter and use that to fill your typed DataTable. That way you’re only getting back the data you need.

    If you go this route, remember that Access/Jet uses positional parameters, not named parameters. So instead of

    SELECT * FROM Quotes WHERE Year(QuoteDate) > @Year 

    you’d use something like this:

    SELECT * FROM Quotes WHERE Year(QuoteDate) > ? 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 62k
  • Answers 62k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Yahoo pipes is an excellent way of aggregating feeds. There… May 11, 2026 at 10:00 am
  • added an answer This should be possible with IIS using the host headers… May 11, 2026 at 10:00 am
  • added an answer The line that seems to be causing your execption is… May 11, 2026 at 10:00 am

Related Questions

I have a ASP.Net page using ADO to query MS access database and as
I have a ASP.NET page with an asp:button that is not visible. I can't
I have a asp.net page, and would like to know whether script1 is already
I have a asp.net page where i query a list of url and the
I have a ASP.NET page which allows an administrator to change the password for
I have a asp.net page I'm writing and I'm perplexed by this problem. I
I have a ASP.NET page which has a form on it. It also has
I have a asp.net web page with place holder control and Menu control when
I have a very simple ASP.Net page that acts as a front end for
If I have a decent size asp.net page open in Source view, and hold

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.