Solved

VS2008 - Changing Application Datasource from SQL Server to MS Access

Posted on 2014-09-18
4
354 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 18

Expert Comment

by:Jerry Miller
ID: 40330858
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
ID: 40330861
But normally people are going from Access to SQL as going to Access is a step backwards.
0
 

Author Comment

by:Cmitch
ID: 40330892
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
ID: 40331153
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

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

717 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