?
Solved

VS2008 - Changing Application Datasource from SQL Server to MS Access

Posted on 2014-09-18
4
Medium Priority
?
361 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 1500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

762 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