473,473 Members | 2,215 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Anyway of achieving DB independace with the Dataset designer in vs2005?

Hi All,

I have just discovered the dataset designer in Visual Studio 2005 and
really love it. It makes it a piece of cake to produce a DAL to the
DB. But I was wondering, when I create a table adapter I have to give
it the connection type. Ie SQLClient, ODBC etc. This mean that if I
want to change from say SQL to ODBC I will have to recreate the table
adapters as I can't just change the connection type as it brings up
loads of errors.

|s there anyway I can achieve Database independance using this tool. In the past I have use the IDBAdapter and factory methods to do this but because it is auto generated I can;t do it this way anymore.

Thanks,

Mike
Apr 26 '06 #1
1 1178
Hi,
You can probably change the Connection property of the Table Adapter if
the two targeted db have the same schema. I mean, if you have two
"identical" db on MS SQL Server, but one for tests and one for real stuff,
you can switch from one to the other at run time through that property,
that's for sure. I am not sure if this is applicable for your scenario.
Vanderghast, Access MVP
"Mike Davies" <mike@(cutmeout)scrappy.freeserve.co.uk> wrote in message
news:3o********************************@4ax.com...
Hi All,

I have just discovered the dataset designer in Visual Studio 2005 and
really love it. It makes it a piece of cake to produce a DAL to the
DB. But I was wondering, when I create a table adapter I have to give
it the connection type. Ie SQLClient, ODBC etc. This mean that if I
want to change from say SQL to ODBC I will have to recreate the table
adapters as I can't just change the connection type as it brings up
loads of errors.

|s there anyway I can achieve Database independance using this tool. In
the past I have use the IDBAdapter and factory methods to do this but
because it is auto generated I can;t do it this way anymore.

Thanks,

Mike

Apr 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Soeren D. | last post by:
I have read how one can define tables, indices, relations etc. in .Net code in a way that allows you to run a off-line XML based ADO.NET, which is excactly what I need. I have also read about...
4
by: paul | last post by:
Hi, Im trying to add a dataset to the app_code directory using vs2005 \ SQL2005 beta 2. When I run through the wizard I select the option to auto create new Stored Procedures (Select, update,...
1
by: Ed West | last post by:
vs2005 final release, um, i can't open my typed dataset, I am getting unhelpful error. I could not find any info on it on newsgroups or web sites. anyone know of a solution? Seems to be...
7
by: Magnus | last post by:
Im using the new binding features of Visual Studio 2005. I have done the steps to create a bound data source, and selected all 40 tables from the database. The wizard generated the necessary code...
0
by: Liming | last post by:
Hi, I designed a few DataSet Tables in the typed dataset dsigner. Recently, I encountered an error saying Failed to enable constraints. One or more rows contain values violating non-null,...
5
by: guy | last post by:
http://blogs.msdn.com/ericnel/archive/2006/10/17/top-level-technologies-products-not-supported-on-windows-vista.aspx are MS really saying that they do not have a development enviropnment for...
21
by: Peter Bradley | last post by:
Hi all, This post is sort of tangentially related to my earlier posts on configuration files for DLLs. Does anyone know how to create typed DataSets using VS2005's new DataSet designer, but...
2
by: active T | last post by:
Hi, I've build a application, and this is the first time that i try to use the dataset (designer) from VS. It seems to be very intressing building a dataaccesslayer into my application. I use...
3
by: Academia | last post by:
I have a vs2003 project (actually 44 of them) that I want to convert to VS2005 format. To fix a usercontrol file I created the Designer.vb file and moved the Inherited and Class ( change to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.