Database Connection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Reddy

    #1

    Database Connection

    Is there any way to connect to a Foxpro database to display results in
    asp.net (c#) application.
    Any sample code would be nice.

    Reddy


  • Ravikanth[MVP]

    #2
    Database Connection

    Hi

    Here is the connection string to connect to foxpro
    database:

    OLE DB, OleDbConnection (.NET) standard:
    "Provider=Micro soft.Jet.OLEDB. 4.0;Data
    Source=c:\folde r;Extended Properties=dBAS E IV;User
    ID=Admin;Passwo rd="

    HTH
    Ravikanth[MVP]


    [color=blue]
    >-----Original Message-----
    >Is there any way to connect to a Foxpro database to[/color]
    display results in[color=blue]
    >asp.net (c#) application.
    >Any sample code would be nice.
    >
    >Reddy
    >
    >
    >.
    >[/color]

    Comment

    • Reddy

      #3
      Re: Database Connection

      Sorry I have some more queries regarding this.

      If the Foxpro database is on a different computer and asp.net application is
      on a different computer on different networks then how to connect to the
      foxpro database.
      e.g: Foxpro computer is on computer with IP 195.100.100.50 and asp.net
      application is on a computer with IP 195.100.100.51

      Thanks,

      Reddy



      "Ravikanth[MVP]" <dvravikanth@ho tmail.com> wrote in message
      news:09d101c35c d5$f8cba170$a50 1280a@phx.gbl.. .[color=blue]
      > Hi
      >
      > Here is the connection string to connect to foxpro
      > database:
      >
      > OLE DB, OleDbConnection (.NET) standard:
      > "Provider=Micro soft.Jet.OLEDB. 4.0;Data
      > Source=c:\folde r;Extended Properties=dBAS E IV;User
      > ID=Admin;Passwo rd="
      >
      > HTH
      > Ravikanth[MVP]
      >
      >
      >[color=green]
      > >-----Original Message-----
      > >Is there any way to connect to a Foxpro database to[/color]
      > display results in[color=green]
      > >asp.net (c#) application.
      > >Any sample code would be nice.
      > >
      > >Reddy
      > >
      > >
      > >.
      > >[/color][/color]


      Comment

      Working...