PC Review


Reply
Thread Tools Rate Thread

connecting to access 97 database is same as SQL?

 
 
=?Utf-8?B?QWw=?=
Guest
Posts: n/a
 
      26th Nov 2004
Hi,
I am looking for sample VB.net code for working with Access 97 database. I
know how to work with SQL but I dont know how to read and writ into access
97. Any help is very much appreciated.

There was suggestion that connecting to an MS Access database through VB.NET
is exactly same as SQL and I only need to change the provider name.

Dim sConnString As String = _
"Provider=Microsoft.Jet.OLEDB.3.51;" & _
"Data Source=C:\myPath\myJet.mdb;" & _
"User ID=Admin;" & _
"Password="

but when i try to connect i get the error that Keyword not supported:
'microsoft.jet.oledb.3.51;data source'

I am running access 2002 but the database i am trying to connect is in
access 97.

Al

 
Reply With Quote
 
 
 
 
Mary Chipman
Guest
Posts: n/a
 
      26th Nov 2004
Use the 4.0 provider, not 3.51. Also, the User ID and password is not
necessary as Access will log you on silently as the Admin user with no
password (unless you've implemented user-level security, in which case
you'd need to specify the workgroup file as well).

--Mary

On Fri, 26 Nov 2004 09:11:02 -0800, "Al"
<(E-Mail Removed)> wrote:

> Hi,
>I am looking for sample VB.net code for working with Access 97 database. I
>know how to work with SQL but I dont know how to read and writ into access
>97. Any help is very much appreciated.
>
>There was suggestion that connecting to an MS Access database through VB.NET
>is exactly same as SQL and I only need to change the provider name.
>
>Dim sConnString As String = _
> "Provider=Microsoft.Jet.OLEDB.3.51;" & _
> "Data Source=C:\myPath\myJet.mdb;" & _
> "User ID=Admin;" & _
> "Password="
>
>but when i try to connect i get the error that Keyword not supported:
>'microsoft.jet.oledb.3.51;data source'
>
>I am running access 2002 but the database i am trying to connect is in
>access 97.
>
>Al


 
Reply With Quote
 
=?Utf-8?B?QWw=?=
Guest
Posts: n/a
 
      26th Nov 2004
Thanks Mary do i need to also include provider?
Provider=Microsoft.Jet.OLEDB.4.0?
do you have sample code for OldeDB?
thanks
Al

"Mary Chipman" wrote:

> Use the 4.0 provider, not 3.51. Also, the User ID and password is not
> necessary as Access will log you on silently as the Admin user with no
> password (unless you've implemented user-level security, in which case
> you'd need to specify the workgroup file as well).
>
> --Mary
>
> On Fri, 26 Nov 2004 09:11:02 -0800, "Al"
> <(E-Mail Removed)> wrote:
>
> > Hi,
> >I am looking for sample VB.net code for working with Access 97 database. I
> >know how to work with SQL but I dont know how to read and writ into access
> >97. Any help is very much appreciated.
> >
> >There was suggestion that connecting to an MS Access database through VB.NET
> >is exactly same as SQL and I only need to change the provider name.
> >
> >Dim sConnString As String = _
> > "Provider=Microsoft.Jet.OLEDB.3.51;" & _
> > "Data Source=C:\myPath\myJet.mdb;" & _
> > "User ID=Admin;" & _
> > "Password="
> >
> >but when i try to connect i get the error that Keyword not supported:
> >'microsoft.jet.oledb.3.51;data source'
> >
> >I am running access 2002 but the database i am trying to connect is in
> >access 97.
> >
> >Al

>
>

 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      27th Nov 2004
Al

When Herfried was active now, you would have had this link already a long
time.

http://www.connectionstrings.com/

When you do not find it there than here one extra

http://www.able-consulting.com/ADO_Conn.htm

I hope this helps?

Cor


"Al" <(E-Mail Removed)>

> Thanks Mary do i need to also include provider?
> Provider=Microsoft.Jet.OLEDB.4.0?
> do you have sample code for OldeDB?
> thanks
> Al
>
> "Mary Chipman" wrote:
>
>> Use the 4.0 provider, not 3.51. Also, the User ID and password is not
>> necessary as Access will log you on silently as the Admin user with no
>> password (unless you've implemented user-level security, in which case
>> you'd need to specify the workgroup file as well).
>>
>> --Mary
>>
>> On Fri, 26 Nov 2004 09:11:02 -0800, "Al"
>> <(E-Mail Removed)> wrote:
>>
>> > Hi,
>> >I am looking for sample VB.net code for working with Access 97 database.
>> >I
>> >know how to work with SQL but I dont know how to read and writ into
>> >access
>> >97. Any help is very much appreciated.
>> >
>> >There was suggestion that connecting to an MS Access database through
>> >VB.NET
>> >is exactly same as SQL and I only need to change the provider name.
>> >
>> >Dim sConnString As String = _
>> > "Provider=Microsoft.Jet.OLEDB.3.51;" & _
>> > "Data Source=C:\myPath\myJet.mdb;" & _
>> > "User ID=Admin;" & _
>> > "Password="
>> >
>> >but when i try to connect i get the error that Keyword not supported:
>> >'microsoft.jet.oledb.3.51;data source'
>> >
>> >I am running access 2002 but the database i am trying to connect is in
>> >access 97.
>> >
>> >Al

>>
>>



 
Reply With Quote
 
Mary Chipman
Guest
Posts: n/a
 
      27th Nov 2004
Your connection string looked like it was OK, except for the 3.51.

--Mary

On Fri, 26 Nov 2004 14:09:01 -0800, "Al"
<(E-Mail Removed)> wrote:

>Thanks Mary do i need to also include provider?
>Provider=Microsoft.Jet.OLEDB.4.0?
>do you have sample code for OldeDB?
>thanks
>Al
>
>"Mary Chipman" wrote:
>
>> Use the 4.0 provider, not 3.51. Also, the User ID and password is not
>> necessary as Access will log you on silently as the Admin user with no
>> password (unless you've implemented user-level security, in which case
>> you'd need to specify the workgroup file as well).
>>
>> --Mary
>>
>> On Fri, 26 Nov 2004 09:11:02 -0800, "Al"
>> <(E-Mail Removed)> wrote:
>>
>> > Hi,
>> >I am looking for sample VB.net code for working with Access 97 database. I
>> >know how to work with SQL but I dont know how to read and writ into access
>> >97. Any help is very much appreciated.
>> >
>> >There was suggestion that connecting to an MS Access database through VB.NET
>> >is exactly same as SQL and I only need to change the provider name.
>> >
>> >Dim sConnString As String = _
>> > "Provider=Microsoft.Jet.OLEDB.3.51;" & _
>> > "Data Source=C:\myPath\myJet.mdb;" & _
>> > "User ID=Admin;" & _
>> > "Password="
>> >
>> >but when i try to connect i get the error that Keyword not supported:
>> >'microsoft.jet.oledb.3.51;data source'
>> >
>> >I am running access 2002 but the database i am trying to connect is in
>> >access 97.
>> >
>> >Al

>>
>>


 
Reply With Quote
 
=?Utf-8?B?U3RldmVJbkJlbG9pdA==?=
Guest
Posts: n/a
 
      13th Jan 2005
AL,

Did this all work for you?

Thanks,
Steve

"Mary Chipman" wrote:

> Your connection string looked like it was OK, except for the 3.51.
>
> --Mary
>
> On Fri, 26 Nov 2004 14:09:01 -0800, "Al"
> <(E-Mail Removed)> wrote:
>
> >Thanks Mary do i need to also include provider?
> >Provider=Microsoft.Jet.OLEDB.4.0?
> >do you have sample code for OldeDB?
> >thanks
> >Al
> >
> >"Mary Chipman" wrote:
> >
> >> Use the 4.0 provider, not 3.51. Also, the User ID and password is not
> >> necessary as Access will log you on silently as the Admin user with no
> >> password (unless you've implemented user-level security, in which case
> >> you'd need to specify the workgroup file as well).
> >>
> >> --Mary
> >>
> >> On Fri, 26 Nov 2004 09:11:02 -0800, "Al"
> >> <(E-Mail Removed)> wrote:
> >>
> >> > Hi,
> >> >I am looking for sample VB.net code for working with Access 97 database. I
> >> >know how to work with SQL but I dont know how to read and writ into access
> >> >97. Any help is very much appreciated.
> >> >
> >> >There was suggestion that connecting to an MS Access database through VB.NET
> >> >is exactly same as SQL and I only need to change the provider name.
> >> >
> >> >Dim sConnString As String = _
> >> > "Provider=Microsoft.Jet.OLEDB.3.51;" & _
> >> > "Data Source=C:\myPath\myJet.mdb;" & _
> >> > "User ID=Admin;" & _
> >> > "Password="
> >> >
> >> >but when i try to connect i get the error that Keyword not supported:
> >> >'microsoft.jet.oledb.3.51;data source'
> >> >
> >> >I am running access 2002 but the database i am trying to connect is in
> >> >access 97.
> >> >
> >> >Al
> >>
> >>

>
>

 
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
Connecting to an Access database NateBuckley Microsoft Excel Programming 3 6th May 2008 01:29 PM
Need help in VB.NET connecting to Access database CM Manager via DotNetMonster.com Microsoft VB .NET 10 21st Aug 2005 01:12 AM
connecting to an Access Database =?Utf-8?B?WmFmYXI=?= Microsoft Dot NET Compact Framework 1 3rd Nov 2004 03:40 PM
CONNECTING AN ACCESS DATABASE (HELP!!!) DALHART DOBBS Microsoft Access 3 23rd Mar 2004 04:04 AM
Connecting to Jet 4.0/Access database Peter Rabbit Microsoft ADO .NET 7 16th Jul 2003 01:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:09 PM.