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 370223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:59:50+00:00 2026-05-12T13:59:50+00:00

In MS Access I have a query wich takes two parameters and I’d like

  • 0

In MS Access I have a query wich takes two parameters and I’d like to get the result of this query in a ADO.NET DataSet with a TableAdapter.

In Visual Studio Express 2008 I can’t select the query in the assistant. In fact it seems I can’t select any queries with parameters. Is there any way to use am Access parameterized query in ADO.NET?

  • 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-12T13:59:50+00:00Added an answer on May 12, 2026 at 1:59 pm

    query1

    SELECT * FROM EMP where eno=meno and ename=mename
    

    Popuplate DataTable instance

    OleDbConnection cn = new OleDbConnection(@"connect_string");
    OleDbCommand cmd = new OleDbCommand("query1", cn);
    cmd.CommandType = CommandType.StoredProcedure;
    
    cmd.Parameters.Add("meno", OleDbType.Integer, 4, "eno");
    cmd.Parameters.Add("mename", OleDbType.VarChar, 40, "ename");
    cmd.Parameters[0].Value = 44;
    cmd.Parameters[1].Value = "ddd";
    
    OleDbDataAdapter adp = new OleDbDataAdapter(cmd);
    DataTable dt = new DataTable();
    adp.Fill(dt);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a query in access that is this: SELECT iif([Cup Type] like '*Cylinder*',count([Cup
I have a query that produces a result like this: The data is sorted
I have a query in access like this : insert into table1 select *
I have the following Access 2002 query I'm running through OLE DB in .NET:
In my SQL query in Access 2000, I have a field containing numbers like:
If I use routing with 2 query parameters, like this: System.Web.Routing.RouteTable.Routes.MapPageRoute(HomeRoute, home/{f1}/{f2}, ~/Home.aspx); My
I have a query in MS Access which creates a table from two subqueries.
please tell me how to write this query i have an access table number
I have sql query like this: select a.x, a.y, sum(a.foo) as foo_sum from a
I have access to some images that can be gathered like this: http://www.example.com/imageGetter.php?a=0001 If

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.