CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2001
    Location
    israel
    Posts
    99

    Connection string to access

    hi guys,

    i am building a project using VB and a Databe created in Access.
    can i connect to the database without using the ODBC Data source??

    thanks,
    ohad.


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Connection string to access

    'connection to secure database
    Dim Cnn As ADODB.Connection
    Dim sConn As String

    Set Cnn = New ADODB.Connection

    sConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
    "Data Source=" & DBNAME & _
    ";Persist Security Info=False"

    With Cnn
    .CursorLocation = adUseClient
    .Open sConn
    End With


    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    May 2001
    Location
    israel
    Posts
    99

    Re: Connection string to access

    hi,

    first of all thanks for your help.
    using the adodc i found how i create a connection
    string to sql oracle and i saw the jet thing, but didnt knew he support access.

    can you tell me what is this jet thing?
    what more he support except access?

    thanks,
    ohad.


  4. #4
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Connection string to access

    JET is the database engine. I forgot what JET stands for, but it has nothing to do with jet planes. Access and VB have the same engine JET and used mainly for supporting Access.

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  5. #5
    Join Date
    Sep 2001
    Location
    Montreal Canada
    Posts
    1,080

    Re: Connection string to access

    I think SQL Server uses Jet database engine too..

    Nicolas Bohemier

  6. #6
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Connection string to access

    When you create a recordset from SQLServer table and work with this rs, VB uses JET engine

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured