Solved

VS2008 - Changing Application Datasource from SQL Server to MS Access

Posted on 2014-09-18
4
341 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# Offline Apllication 5 55
Anyway to make "All" the default in the dropdown? 6 34
how to read json value 2 31
SQL Login 17 40
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

895 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

14 Experts available now in Live!

Get 1:1 Help Now