Solved

VS2008 - Changing Application Datasource from SQL Server to MS Access

Posted on 2014-09-18
4
337 Views
Last Modified: 2014-09-22
An application I have previously created which utilising a SQL Server 2008 database, however I now need to change this to MS Access.

I have changed the connectionstring to point the MS Access Database, however I receive errors when attempting to use the dataset as the connections have remained as SQLclient.SQLConnection.  

Is there an efficient way to update to change the datasources from SQL Server to MS Access?
0
Comment
Question by:Cmitch
  • 3
4 Comments
 
LVL 18

Expert Comment

by:Jerry Miller
Comment Utility
SQLclient.SQLConnection is for MS SQL only, you will have to use OleDb for MS Access.

For example:
Dim dbConnection As OleDbConnection
Dim dbCommand As OleDbCommand
Dim dbDataAdapter As OleDbDataAdapter
0
 
LVL 18

Expert Comment

by:Jerry Miller
Comment Utility
But normally people are going from Access to SQL as going to Access is a step backwards.
0
 

Author Comment

by:Cmitch
Comment Utility
True, not really my choice.   It has been requested to take this offsite, would there be a better option than using MS Access (without having the user install SQL Server), considering this will probably be running a standalone machine.
0
 
LVL 18

Accepted Solution

by:
Jerry Miller earned 500 total points
Comment Utility
You can use SQL Server Express or MySQL, either would be better than Access. Even in the newer versions, Access is limited to about 2GB. The express version of SQL allows you 10GB.

http://www.microsoft.com/web/platform/database.aspx

If you never see the database getting bigger than 2GB, then you can use Access. They just have to realize it has limitations. Access is great for creating small applications with just a few users and I have built a lot of programs in it, but it isn't truly a database software like Oracle, SQL, or MySQL.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now