Solved

VS2008 - Changing Application Datasource from SQL Server to MS Access

Posted on 2014-09-18
4
345 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
rebind a grid after user clicks on node in treeview 1 34
What namespace do I need to import? 2 25
C# bracket error 3 30
get row value in vb.net 4 14
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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

805 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