Home > Ask the Microsoft .Net Development Experts > Visual Studio .NET Questions & Answers > How do I (or can I) use Visual Studio.NET to develop with my Access Database?
Ask The Win Development Expert: Questions & Answers
EMAIL THIS

How do I (or can I) use Visual Studio.NET to develop with my Access Database?

Berni McCoy EXPERT RESPONSE FROM: Berni McCoy

Pose a Question
Other Win Development Categories
Meet all Win Development Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 23 June 2004
How do I (or can I) use Visual Studio.NET to develop with my Access Database? I used the sample on MS.com and I liked it. Now I have it and don't know how to use it. Can you give me some pointers on how to get started?

>
Using Visual Studio, the best way to get started is by setting up a connection using the Server Explorer (accessible via the View menu or by the short-cut keys Ctrl+Alt+S). Right-click on the Data Connections and select "Add Connection..." This will bring up the Data Link Properties dialog. Select the Provider tab and select the appropriate MS Jet OLE DB Provider. Click Next and you'll be taken to the Connection tab which will allow you to specify the location of your MDB file. Test the connection using the Test Connection button and then click ok. You know will have a node in the Server Explorer that represents your database. You can drag and drop tables, stored procedures and views directly into your project. Doing so in a forms project will generate an OleDbConnection and OleDbAdapter objects. You can use OleDbAdapter objects to generate DataSets (Right-click on the adapter in the designer view and select "Generate Dataset..."). Once you have a DataSet, you can use it as a source for a DataGrid, or any other control that can read a DataSet. If you haven't done so already, I highly recommend reading Microsoft ADO.NET by David Sceppa (ISBN 0735614237).


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Visual Studio .NET
Load a DSL domain model instance file programmatically
Best approach for merging text files using arrays
Descriptions of symbols in the class view of a .NET solution
What's the best approach for enumerating network resources?
How to enable a line-by-line code walkthrough
Changing a C++ Makefile project to a Utility project
How can I configure Visual Studio.NET 2002 to use the .NET Framework 1.1?
Changing a datagrid column to read-only=false based on variable
Resizing controls on a form
No extensibility folders

Visual Studio .NET
Load a DSL domain model instance file programmatically
Calling via command prompt from ASP.NET
On line-by-line analysis in VS .NET
Best approach for merging text files using arrays
Descriptions of symbols in the class view of a .NET solution
What's the best approach for enumerating network resources?
How to enable a line-by-line code walkthrough
Changing a C++ Makefile project to a Utility project
How can I configure Visual Studio.NET 2002 to use the .NET Framework 1.1?
Changing a datagrid column to read-only=false based on variable

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Windows Development - White Papers, News and Expert Advice
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts