473,405 Members | 2,262 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to change data provider of a dataset?

I have created some datasets and they are created with oledb data provider.
Now, I want to change them to sqlclient. How can I change it?
Aug 29 '07 #1
3 3023
Peter,

Your datasets themselves don't have really connections to the server. The
strongly typed datasets in version 2005 and later have extras that can set
retrieval functions for that.

However the dataset it self is the same for all providers.

The connection, comands and adapter classes are not the same. You can use
the factory class if you want to use both, if it is about just replacing,
then a find and replace after saving first your project will probably be the
easiest.

http://www.vb-tips.com/DataBaseFactory.aspx

Cor
"Peter" <Pe***@discussions.microsoft.comschreef in bericht
news:F2**********************************@microsof t.com...
>I have created some datasets and they are created with oledb data provider.
Now, I want to change them to sqlclient. How can I change it?
Aug 29 '07 #2
Hi Cor,

I just want to replace them so all connections are using SqlClient. For
VS2005 dataset, what files/properties I need to replace?

These are what I find so far:

- ConnectionString of TableAdapter
- Dataset.Designer.vb
Peter

"Cor Ligthert[MVP]" wrote:
Peter,

Your datasets themselves don't have really connections to the server. The
strongly typed datasets in version 2005 and later have extras that can set
retrieval functions for that.

However the dataset it self is the same for all providers.

The connection, comands and adapter classes are not the same. You can use
the factory class if you want to use both, if it is about just replacing,
then a find and replace after saving first your project will probably be the
easiest.

http://www.vb-tips.com/DataBaseFactory.aspx

Cor
"Peter" <Pe***@discussions.microsoft.comschreef in bericht
news:F2**********************************@microsof t.com...
I have created some datasets and they are created with oledb data provider.
Now, I want to change them to sqlclient. How can I change it?
Aug 29 '07 #3
Peter,

You can start with searching your whole project including the generated
classes for "OleDB" all classes which use that Start with that. Replacing
those for "Sql" will probably all you have to do. (However save your project
first)

As I wrote the dataset class itself is not dependend from a provider,
however the generic dataset of 2005 or later can have parts to get the data,
although those classes then start as well with OleDB.

Cor

"Peter" <Pe***@discussions.microsoft.comschreef in bericht
news:E1**********************************@microsof t.com...
Hi Cor,

I just want to replace them so all connections are using SqlClient. For
VS2005 dataset, what files/properties I need to replace?

These are what I find so far:

- ConnectionString of TableAdapter
- Dataset.Designer.vb
Peter

"Cor Ligthert[MVP]" wrote:
>Peter,

Your datasets themselves don't have really connections to the server. The
strongly typed datasets in version 2005 and later have extras that can
set
retrieval functions for that.

However the dataset it self is the same for all providers.

The connection, comands and adapter classes are not the same. You can use
the factory class if you want to use both, if it is about just replacing,
then a find and replace after saving first your project will probably be
the
easiest.

http://www.vb-tips.com/DataBaseFactory.aspx

Cor
"Peter" <Pe***@discussions.microsoft.comschreef in bericht
news:F2**********************************@microso ft.com...
>I have created some datasets and they are created with oledb data
provider.
Now, I want to change them to sqlclient. How can I change it?
Aug 29 '07 #4

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

Similar topics

3
by: Chris | last post by:
Could someone please provide me an effective means of exporting data from a data set (or data grid) to Excel?
1
by: Terry | last post by:
My Question is this, I'm having trouble getting the OleDbDataAdapter to Point to another connection string and pull the data out of the DataSet I created from the Excel Spread Sheet and Place it up...
4
by: authorking | last post by:
I use the following code to insert a data record in to a datatable of an access database.But every time I execute the command, there will rise an exception and the insert operation can't be...
7
by: Shaine Fisher | last post by:
I have had a look around but I'm either not finding or not seeing the answer to this, what i want to do is reurn the results as an array, or some other worldly useful format that flash mx2004 can...
5
by: petro | last post by:
Hello all, My asp.net web application works on my machine but I get the following error on our test web server, There is only one oracle home on the test server. Does anyone know how to resolve...
10
by: Paul Deibel | last post by:
Hello I am working on a VB.Net project where I need to change the data provider from OLEDB to OracleClient. I am also looking to use "shaping" and I am looking for the equivalent to...
7
by: Wayne Wengert | last post by:
I am using VB with a Windows NET application. I have a datagrid in which the user can add rows using the "*" row. I want to detect whenever the user has added a row. I found the following code at...
4
by: slinky | last post by:
I'm making a OLE DB connection in code and was wondering if anyone could identify what the syntax errors I have. I've tried countless combinations and all give errors. New...
4
by: Rick | last post by:
I've moved code from a stage machine to the production machine, exact same code works fine on the stage machine, they are both windows 2003 servers, I'm getting a "Cannot generate SSPI context"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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,...

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.