473,386 Members | 1,726 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,386 software developers and data experts.

DbProviderFactory

I am using VS2005.

I have added:

import System.Data.Common

And in the code I want:

Dim myFactory As DbProviderFactory

But I cannot see anything like DbProviderFactory. The intellisense
list does not display anything like that. How to declare it?

Oct 17 '07 #1
1 2125
Hello Rohit,

DbProviderFactory is an abstract (MustInherit in VB) class. It means you can
not create an instance of such a class. You are able to create instances of
"concrete" implementations that derive from DbProviderFactory:

System.Data.Odbc.OdbcFactory
System.Data.OleDb.OleDbFactory
System.Data.OracleClient.OracleClientFactory
System.Data.SqlClient.SqlClientFactory

Cheers,
Leszek "TarTar"

"Rohit" <rp*********@gmail.comwrote in message
news:11**********************@q5g2000prf.googlegro ups.com...
>I am using VS2005.

I have added:

import System.Data.Common

And in the code I want:

Dim myFactory As DbProviderFactory

But I cannot see anything like DbProviderFactory. The intellisense
list does not display anything like that. How to declare it?

Oct 17 '07 #2

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

Similar topics

8
by: Dino Buljubasic | last post by:
Hi, How do I write a db driven app that will work independently of data provider. No matter whether backend is Oracle, SQL Server, mySQL or Access, it should work smoothlesly tx
3
by: zapov | last post by:
Hi! Did anyone successfully managed to use some custom ADO.NET provider with SqlDataSource? I'd like to connect to some other database than MSSQL (like MySQL, Firebird or PostgreSQL) but I'm...
5
by: Familjen Kalrsson | last post by:
Hi I wounder if I can use Sqlconnection or other Sql members to work with a MS Access database. I have tried to connect to Access's database Northwind, but when I set the data source to...
0
by: S Chapman | last post by:
MS have incorporated the abstract factory pattern to enable us to write DB brand independent code but with this we have a completely new set of abstract classes that look like the old IDB*...
0
by: SFM | last post by:
Connection to several connection string from the app.config file I am trying to find a why to get the providerMappings settings from the app.config. For my data access I am using Data access...
10
by: BLUE | last post by:
Is there any way to use transactions if I use DbProviderFactory class to abstract from the provider? If not, is there any way to manage concurrency in a "universal"/provider indipendent mode? ...
5
by: Edwin Smith | last post by:
Hello: I'm using VS2005 with an ODBC database. I am trying to add a Dialog to an existing Database application to allow the user to select the database. We have 2 different databases with the...
0
by: Mihai | last post by:
Hi ! I created a dbProvider factory. I created a data adapter: DbProviderFactory.CreateDataAdapter() (it creates a DBDataAdapter object) But this adapter doesn't implement the event...
1
codemama
by: codemama | last post by:
I have written db provider independent code using interfaces (IDbDataAdapter).. However in order to update a database from an XML file I need to use the Command Builder to generate the Insert and...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...

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.