PC Review


Reply
Thread Tools Rate Thread

What is the correct conection string for MSaccess?

 
 
dtto086
Guest
Posts: n/a
 
      13th Apr 2005
Hi.


What is the correct connection string, for Msaccess Databases in Ado.Net?

The Databases have Password, and locate in my PC.

Thanks for all




 
Reply With Quote
 
 
 
 
Beth Massi [Architect MVP]
Guest
Posts: n/a
 
      13th Apr 2005
Imports System.Data.OleDb
....
Dim oOleDbConnection As OleDbConnection
Dim sConnString As String = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\myPath\myJet.mdb;" & _
"User ID=Admin;" & _
"Password="
oOleDbConnection = New OleDb.OleDbConnection(sConnString)
oOleDbConnection.Open()

Take a look at Carl Prothman's site; "World's largest collection of ADO and
ADO.NET connection strings on the internet!":
http://www.carlprothman.net/Default.aspx?tabid=81

HTH,
-B

"dtto086" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi.
>
>
> What is the correct connection string, for Msaccess Databases in Ado.Net?
>
> The Databases have Password, and locate in my PC.
>
> Thanks for all
>
>



 
Reply With Quote
 
dtto086
Guest
Posts: n/a
 
      14th Apr 2005
Thanks for all

andres
"Beth Massi [Architect MVP]" <(E-Mail Removed)> escribió en el mensaje
news:(E-Mail Removed)...
> Imports System.Data.OleDb
> ...
> Dim oOleDbConnection As OleDbConnection
> Dim sConnString As String = _
> "Provider=Microsoft.Jet.OLEDB.4.0;" & _
> "Data Source=C:\myPath\myJet.mdb;" & _
> "User ID=Admin;" & _
> "Password="
> oOleDbConnection = New OleDb.OleDbConnection(sConnString)
> oOleDbConnection.Open()
>
> Take a look at Carl Prothman's site; "World's largest collection of ADO
> and ADO.NET connection strings on the internet!":
> http://www.carlprothman.net/Default.aspx?tabid=81
>
> HTH,
> -B
>
> "dtto086" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi.
>>
>>
>> What is the correct connection string, for Msaccess Databases in Ado.Net?
>>
>> The Databases have Password, and locate in my PC.
>>
>> Thanks for all
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vb.net conection string to C# -- problem Rich P Microsoft C# .NET 6 29th Jan 2010 12:26 AM
How to have C# Web page query MSAccess Database and simultaneously populate MSAccess DB? Siegfried Heintze Microsoft ASP .NET 1 15th Apr 2006 12:41 PM
XML string directly to MSAccess table records?? Don Microsoft VB .NET 0 12th Feb 2006 09:39 PM
converting/migration of MSAccess 2000 database to MSAccess 2003 Janette Microsoft Access 1 9th Feb 2005 02:31 PM
app.config file connection string when using c# Winforms to MSAccess database GrantS Microsoft C# .NET 1 25th Nov 2003 07:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:41 AM.