?
Solved

VB.net 2010 - backend database Access but later SQL

Posted on 2011-05-04
3
Medium Priority
?
357 Views
Last Modified: 2012-05-11
Hi

I am building an Excel 2007 Workbook application in Visual Studio 2010.
I am going to start with an Access backend and then at some later
point change this to SQL. Because of this I want to maintain flexibility on the
connection to the database, and not use strongly typed datasets yet. I recently had a VB.net we app where I used a connection string as follows. Is this the best sort of approach?
How would I go about this?

    <add name="WhatEverNameYouWant" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|PWeb.accdb;"  />
0
Comment
Question by:Murray Brown
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
Richard Daneke earned 2000 total points
ID: 35692698
The connection string would change for SQL, but, once changed, it should work well PROVIDED you use field types that work with both Access and SQL.
2007 added attachment and RTF Memo fields for SharePoint functionality, but I don't think they have a matching SQL field.
0
 

Author Comment

by:Murray Brown
ID: 35692768
Hi. Thanks
Would you be  able to give me an example of VB.net code to create such a connection
0
 

Author Closing Comment

by:Murray Brown
ID: 35693521
Thanks very much for the advice
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Question has a verified solution.

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

Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
In this article, we will see two different methods to recover deleted data. The first option will be using the transaction log to identify the operation and restore it in a specified section of the transaction log. The second option is simpler and c…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Hi, this video explains a free download that you can incorporate into your Access databases, or use stand-alone for contact management. Contacts -- Names, Addresses, Phone Numbers, eMail Addresses, Websites, Lists, Projects, Notes, Attachments…

589 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