Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Modificar/Crear DBF con VB .NET

298 views
Skip to first unread message

Miguel Arias Fernández

unread,
Jun 4, 2004, 7:18:56 AM6/4/04
to
Hola a todos:

Como puedo modificar un DBF (añadiéndole una nueva columna) o crear uno a
partir de cero con VB .NET??


Un saludo y gracias, Miguel


Miguel Arias Fernández

unread,
Jun 4, 2004, 8:25:55 AM6/4/04
to
Creo que ya encontre la solución (C#)

string strconection = "Driver={Microsoft Visual FoxPro
Driver};PWD=;SourceType=DBF;Collate=Machine;Deleted=Sí;BackgroundFetch=Sí;Ex
clusive=No;SourceDB=c:\\OG\\;Null=Sí;UID=";

OdbcConnection tconection = new OdbcConnection(strconection);


tconection.Open();

string qrySQL;


qrySQL="CREATE TABLE \"c:\\OG\\miguel.dbf\" (Nome char(50), Endereco
char(50)) ";

//OdbcCommand tcommand = new OdbcCommand(qrySQL,tconection);

OdbcCommand tcommand = new OdbcCommand();

tcommand.CommandText = qrySQL;

tcommand.Connection= tconection;

tcommand.ExecuteNonQuery();

tcommand = null;

tconection.Close();


tconection = null;

"Miguel Arias Fernández" <miguel...@balidea.com> escribió en el mensaje
news:us5T$WiSEH...@TK2MSFTNGP11.phx.gbl...

0 new messages