CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2008
    Location
    Canada, Saskatchewan province
    Posts
    29

    how to access microsoft access db with no IDE, console and notepad only

    How to access a microsoft access database using c# with a console application and no IDE?

  2. #2
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: how to access microsoft access db with no IDE, console and notepad only

    You can definately write a console based program that usilizes ADO.NET

    Since you didnt ask any specific questions, that's abaout all there is to say....
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  3. #3
    Join Date
    Dec 2008
    Location
    Canada, Saskatchewan province
    Posts
    29

    Re: how to access microsoft access db with no IDE, console and notepad only

    Do you have a code example on how to go about doing so?

  4. #4
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: how to access microsoft access db with no IDE, console and notepad only

    Quote Originally Posted by RickyWh View Post
    Do you have a code example on how to go about doing so?
    There is no magic... here is a SNIPPET.
    Code:
    DataSet ds = new DataSet();
    ds.Fill(....);
    DateTable dt = ds.Tables[0];
    foreach (DataRow dr in dt.Rows())
    {
       Console.WriteLine(dr[0]);
    }
    That should give you enought parts to research.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

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

Featured