FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index All products support Conversione di un file SQL (con estensione ldf e mdf) in mdb
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM

Conversione di un file SQL (con estensione ldf e mdf) in mdb

Posted: Wed May 03, 2006 10:58 AM

Salve,
qualche idea a riguardo ?

Grazie

MArco

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Conversione di un file SQL (con estensione ldf e mdf) in

Posted: Wed May 03, 2006 11:46 AM
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:

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
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM

Conversione di un file SQL (con estensione ldf e mdf) in mdb

Posted: Wed May 03, 2006 06:25 PM

Il problema però è che non ho sql server installato.
Gli archivi in questione mi sono stati forniti da uno studio.

Marco

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Conversione di un file SQL (con estensione ldf e mdf) in mdb

Posted: Wed May 03, 2006 07:13 PM

Allora installa MSDE. Altrimenti temo non ci sia niente da fare.

EMG

Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM

Conversione di un file SQL (con estensione ldf e mdf) in mdb

Posted: Thu May 04, 2006 08:52 AM

Sai se esiste una versione Free di MSDE e dove scaricarla ?
Ho cercato su google ma mi esce di tutto.

Marco

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM

Conversione di un file SQL (con estensione ldf e mdf) in mdb

Posted: Wed May 10, 2006 08:43 AM

Grazie.
Ho però un problema,
quando cerco di aprire il file ottengo l'errore "MS SQL Server DB provider not found" e "MS SQL Server odbc drive not found" probabilmente non vengono installati con l'installazione MSDE standard.

Ti sono già capitati questi problemi e sai che driver scaricare ?

Grazie

Marco

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Conversione di un file SQL (con estensione ldf e mdf) in mdb

Posted: Wed May 10, 2006 09:39 AM

Io ho installato l'MSDE che ti ho detto e non ho avuto problemi.

EMG

Continue the discussion