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

Connecting to Access 2000 database???

Dear all,

what is the way of accessing to an acess database
with .Net?

With SQL server there is an SQL data provider but cannot
found for access?

thanks for your reply
Serge
Nov 19 '05 #1
4 3079
"Serge Calderara" <se*************@maillefer.net> schrieb
what is the way of accessing to an acess database
with .Net?

With SQL server there is an SQL data provider but cannot
found for access?


There is the "Microsoft Jet 4.0 OLE DB Provider". Try to add a connection in
the server explorer window and select the mentioned provider in the first
folder. You can have the required connection string created this way.

For further ADO.Net related questions:
microsoft.public.dotnet.framework.adonet

See also the comprehensive docs about accessing data in the Framework SDK
and the VB docs (called "Accessing data").

--
Armin

Nov 19 '05 #2
Serge,

Use the OLEDB data provider.

Ken
----------
"Serge Calderara" <se*************@maillefer.net> wrote in message
news:93****************************@phx.gbl...
Dear all,

what is the way of accessing to an acess database
with .Net?

With SQL server there is an SQL data provider but cannot
found for access?

thanks for your reply
Serge

Nov 19 '05 #3
On Wed, 9 Jul 2003 00:55:43 -0700, "Serge Calderara" <se*************@maillefer.net> wrote:

¤ Dear all,
¤
¤ what is the way of accessing to an acess database
¤ with .Net?
¤
¤ With SQL server there is an SQL data provider but cannot
¤ found for access?
¤

Just a snippet using the OLEDB objects:

Dim ConnectionString As String

ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=e:\My Documents\db1.mdb"
Dim AccessConn As New System.Data.OleDb.OleDbConnection(ConnectionString )
AccessConn.Open()
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 19 '05 #4
To get the connection string for your specific connection use the UDL wizard
(Uniform Data Link).

Create an empty file with the extention of .udl, double click on it and the
wizard will launch, once completed with the wizard you required connection
string will be in the file, in fact you can us the 'from file' option to
actually connect based on the files content.

There are many other ways to get connection string, and many other ways to
utilize the dll in which the UDL Wizard resides, this is just one.

Byron...

"Paul Clement" <Us***********************@swspectrum.com> wrote in message
news:8l********************************@4ax.com...
On Wed, 9 Jul 2003 00:55:43 -0700, "Serge Calderara" <se*************@maillefer.net> wrote:
¤ Dear all,
¤
¤ what is the way of accessing to an acess database
¤ with .Net?
¤
¤ With SQL server there is an SQL data provider but cannot
¤ found for access?
¤

Just a snippet using the OLEDB objects:

Dim ConnectionString As String

ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=e:\My Documents\db1.mdb"
Dim AccessConn As New System.Data.OleDb.OleDbConnection(ConnectionString ) AccessConn.Open()
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)

Nov 19 '05 #5

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

Similar topics

1
by: Tim Dol | last post by:
I have inherited a VB6-SP5 program connecting to an Access 2000 database. I'm relatively new to VB/Access programming, so I may overlook something obvious. I'll try to explain the problem I can't...
5
by: Sebastian | last post by:
I'm using the following code to connect to an access 2000 database. (with reference to adodb) Public DBvar As New ADODB.Connection() DBvar.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data...
7
by: TerpZebra | last post by:
I am having difficulty connecting to SQL Server 2000 on one of our servers via a VB6 program on Vista. I can connect fine to a different server, but it gives me the following error with the server...
3
by: Me LK | last post by:
I did a search but could not find an aswer that worked so here it goes. I just did an upgrade from 2003 to vs 2005 express. I am using a remote sql server 2000. I specifically upgrade to make...
2
by: orandov | last post by:
Hi, I am having a problem connecting my .net applications from the application server to the database server. When I run the application from my windows xp (sp2) box it works fine. When I try to...
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.