473,836 Members | 1,596 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connecting to FoxPro to .Net

Edb
Hi Everyone,

I need to build an ASP.Net project that wraps around a FoxPro Database. It
appears that I need

to create an ODBC Connection to .dbf files. Some of them have relations to
each other.

I have not done this before but have a few assesments on how to do it.

a. Create ODBC Connection to each database and make connection strings in
..Net to them.
The issue with this is what if I need to grab specific column types from
each .dbf file? How to do?

b. Create ODBC Connection to SQL and link the database to SQL Server. I
am curious ... because SQL
is linking the databases, can I run stored procedures in SQL to join column
types to my project.

I am just curious. I thank everyone in this forum for there assistance.

Happy Day and Happy Coding,
edb
Nov 20 '05 #1
2 1296
* "Edb" <m1**@dm2000.co m> scripsit:
I need to build an ASP.Net project that wraps around a FoxPro Database. It
appears that I need

to create an ODBC Connection to .dbf files. Some of them have relations to
each other.

I have not done this before but have a few assesments on how to do it.

a. Create ODBC Connection to each database and make connection strings in
.Net to them.
The issue with this is what if I need to grab specific column types from
each .dbf file? How to do?

b. Create ODBC Connection to SQL and link the database to SQL Server. I
am curious ... because SQL
is linking the databases, can I run stored procedures in SQL to join column
types to my project.


You will get more information on that here:

<http://msdn.microsoft. com/newsgroups/default.asp?url =/newsgroups/loadframes.asp? icp=msdn&slcid= us&newsgroup=mi crosoft.public. dotnet.framewor k.adonet>
<http://www.connections trings.com>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Another option you might consider is to use the Visual FoxPro OLEDB
Provider, which you can download from MSDN. There are differences in
functionality with the OLEDB Provider depending on whether you are using 2.x
databases or VFP (3.0 or later) databases, but it may be helpful to you.

There is also a pretty good article in the MSDN Library on using ASP.NET and
VFP (both code and data) together.

Hope this helps,

Robert Green
Microsoft

"Edb" <m1**@dm2000.co m> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi Everyone,

I need to build an ASP.Net project that wraps around a FoxPro Database. It
appears that I need

to create an ODBC Connection to .dbf files. Some of them have relations to each other.

I have not done this before but have a few assesments on how to do it.

a. Create ODBC Connection to each database and make connection strings in
.Net to them.
The issue with this is what if I need to grab specific column types from
each .dbf file? How to do?

b. Create ODBC Connection to SQL and link the database to SQL Server. I
am curious ... because SQL
is linking the databases, can I run stored procedures in SQL to join column types to my project.

I am just curious. I thank everyone in this forum for there assistance.

Happy Day and Happy Coding,
edb

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
13366
by: Simon Bailey | last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have a very simplified knowledge of databases overall. I would very much appreciate a (simplifed) message explaining the advantages and disadvantages of both programs. Many Thanks Simon
2
6606
by: Salad | last post by:
OS = WinXP & Win98. Access = A97 & AXP Q1) Where can I find the VFP ODBC driver at Microsoft. I have been working developing an app in Access that will link to some DOS FoxPro tables. I have been doing my development work in A97 but the folks have AXP at their site. As near as I can tell, the FoxPro driver has been discarded from A97 and replaced with ODBC in A2K onward
4
3366
by: Salad | last post by:
When I connect to FoxPro tables it takes about 1 1/2 minutes to view the records in a small table. Is this normal ODBC behavior?
14
1872
by: John Spiegel | last post by:
Hi all, I'm missing something, probably stupid, on connecting to a SQL Server database from an aspx file. I haven't really done much w/ SQL Server and suspect that it's a problem on that side. I've installed the SQL Server developer edition locally and do have a pubs database. The connection I'm attempting is the following: SqlConnection objConnection =
3
2509
by: Amar | last post by:
I have a abc.PRG file in visual foxpro 8.0. I can run this file using visual foxpro environment and it creates a table X.dbf in the same folder where this program file is and populates some data in the table. I am now using VB.NET to run this abc.PRG file through VB.net environment. (Equivalent method to perform same as "DO abc.prg" command in foxpro). My code for this is as below. This code runs on click of a button in Vb.net.: Dim Fox...
3
1316
by: Burak Gunay | last post by:
Hello, I am trying to connect to a visual fox pro table from my asp.net page. I dragged an odbc connection and set it to a visual fox pro driver file dsn pointing to "mydocuments" folder. Here is the connection string SourceDB=c:\Documents and Settings\bgunay\My
2
2174
by: Toco | last post by:
Hello. I have app written in C# that we are testing. The executable is shared on our network. The method we are testing is a call to a foxpro table. The call is made to query the table, then fill a datable with the resultset. All is fine when I run the executable from my machine. However, when our test user runsthe same executable, the app errors out when attempting to read from the foxpro table. I have logged where the user...
3
1878
by: Salad | last post by:
Is it the rule that any table that you want to use via ODBC must be a UNIQUE record? And if you want any speed associated with the table it should be indexed? I was having some difficulty linking to some FoxPro files last week. I can do so on 1 table now because it has a unique field...but has no index. The table opens like its on downers, staggering under the brunt of displaying 1000 records.
7
5502
by: z71mdridin | last post by:
I have an asp.net website that uses Form authentication to authenticate users. I need to provide users with a report based on FoxPro data that resides on a remote server. When I attempt to connect to the Foxpro directory by using the ODBC DSN that we currently use in ColdFusion, I get the following message: ERROR File 'table.dbf' does not exist. I know this is probably a permissions issue because asp.net is being
0
9826
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9674
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10560
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10604
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9389
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6984
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4466
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4026
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.