Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
McNeish Book and sample data access?
Message
De
11/09/2004 02:09:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
McNeish Book and sample data access?
Divers
Thread ID:
00941275
Message ID:
00941275
Vues:
63
Purchased .NET for VFP Developers by Kevin McNeish there is sample code for
Using vfp data in .net

Trying to place code behind a button
/// Build the connection string
string ConnectionString = "Provider=vfpoledb.1;Data Source=samples.dbc";
/// Create the connection
OleDbConnection Connection = new OleDbConnection(ConnectionString);
/// Open the connection, access the data and close the connection
Connection.Open();
string SelectCmd = "SELECT TOP 3 LastName, FirstName, Title FROM Employees
ORDER BY employeeid";
Does the Source=samples.dbc require a actual path?
Does this dbc have to be set up in the solution explorer first?

Sorry for the basic (really C#) qestions. Struggling with setting the data up.

Gratefull,
Leo
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform