Connection to Access database on Web Server from VB Winforms application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Johnny Jörgensen

    #1

    Connection to Access database on Web Server from VB Winforms application

    Does anybody know if it's possible to do a Windows application that can read
    and write to an Access databas located on a web server that only accepts DNS
    connections.

    Has anybody got a code example for that and/or tips?

    TIA,
    Johnny J.


  • scorpion53061

    #2
    Re: Connection to Access database on Web Server from VB Winforms application

    On May 7, 3:41 am, "Johnny Jörgensen" <j...@altcom.se wrote:
    Does anybody know if it's possible to do a Windows application that can read
    and write to an Access databas located on a web server that only accepts DNS
    connections.
    >
    Has anybody got a code example for that and/or tips?
    >
    TIA,
    Johnny J.

    if you want to use a DSN in your connection string (User DSN or System
    DSN) you need to use the ODBC.NET Data Provider. To accomplish this,
    just build the System
    DSN using the ODBC Data Source Admin tool. In the tool you have to
    browse to the mdb file location. Then in your code just use:

    Dim cnOdbc as OdbcConnection = New OdbcConnection( "DSN=myAccessDS N")

    remote connection:

    Private ConnString As String =
    "Server=10.144. 162.111;Databas e=DNS;Trusted_C onnection=True"

    Comment

    Working...