Salve,
qualche idea a riguardo ?
Grazie
MArco
Conversione di un file SQL (con estensione ldf e mdf) in mdb
Moderator: Enrico Maria Giordano
- Marco Turco
- Posts: 858
- Joined: Fri Oct 07, 2005 12:00 pm
- Location: London
- Contact:
- Enrico Maria Giordano
- Posts: 8775
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 7 times
- Contact:
Re: Conversione di un file SQL (con estensione ldf e mdf) in
Con questo puoi convertire un DBF in una tabella dentro un MDB. Cambiando la stringa di connessione (parametro passato al metodo Open()) puoi farlo con un tabella di qualsiasi SQL:
EMG
Code: Select all | Expand
FUNCTION MAIN()
LOCAL oCat, oCn
FERASE( "new.mdb" )
oCat = CREATEOBJECT( "ADOX.Catalog" )
oCat:Create( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=new.mdb" )
oCn = CREATEOBJECT( "ADODB.Connection" )
oCn:Open( "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\xharbour; Extended Properties=DBASE III" )
oCn:Execute( "SELECT * INTO NewTable IN 'new.mdb' FROM Clienti" )
oCn:Close()
RETURN NIL
EMG
- Marco Turco
- Posts: 858
- Joined: Fri Oct 07, 2005 12:00 pm
- Location: London
- Contact:
- Enrico Maria Giordano
- Posts: 8775
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 7 times
- Contact:
- Marco Turco
- Posts: 858
- Joined: Fri Oct 07, 2005 12:00 pm
- Location: London
- Contact:
- Enrico Maria Giordano
- Posts: 8775
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 7 times
- Contact:
- Marco Turco
- Posts: 858
- Joined: Fri Oct 07, 2005 12:00 pm
- Location: London
- Contact:
- Enrico Maria Giordano
- Posts: 8775
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 7 times
- Contact: