Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ado.net
Message
From
29/12/2004 20:24:49
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Ado.net
Environment versions
Environment:
C# 1.1
OS:
Windows 2000
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00973166
Message ID:
00973166
Views:
52
Hi,

In Visual Fox pro I used to transfer data from DBF tables to Sql server. Before copying I could edit the data in Foxpro like

1. Connection to foxpro tables
CREATE CONNECTION SCRUB CONNSTRING "Provider=MSDASQL.1;Driver={Microsoft Visual FoxPro Driver};SourceDB=" + source_path_LU + ";SourceType=DBF "
2. creating view
Create SQL VIEW rv_UB;
connection SCRUB;
as SELECT * FROM &gcTable


Now I want to do the same in C#. I could connect correctly but doesnot know how to access data from foxpro table. Should I use View like above..if yes how or is there any better method?

string source="Provider=vfpoledb:1;Driver={Microsoft oledb Provider for FoxPro};Data Source=c:\\LH\\;Source Type=dbf";
OleDbConnection oledbconn1=new OleDbConnection();
oledbconn1.ConnectionString =source;
oledbconn1.Open();

Thanks for your help
Bharat
Next
Reply
Map
View

Click here to load this message in the networking platform