new ADO functions
- lucasdebeltran
- Posts: 1303
- Joined: Tue Jul 21, 2009 8:12 am
- Contact:
new ADO functions
Hello,
Continuing with great and very usefull ADO functions created by Mr. Nages, it would be very interesting to have also the following:
- Optimice table.
- Backup table.
Thank you very much.
Continuing with great and very usefull ADO functions created by Mr. Nages, it would be very interesting to have also the following:
- Optimice table.
- Backup table.
Thank you very much.
Muchas gracias. Many thanks.
Un saludo, Best regards,
Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]
Implementando MSVC 2010, FWH64 y ADO.
Abandonando uso xHarbour y SQLRDD.
Un saludo, Best regards,
Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]
Implementando MSVC 2010, FWH64 y ADO.
Abandonando uso xHarbour y SQLRDD.
- Rick Lipkin
- Posts: 2668
- Joined: Fri Oct 07, 2005 1:50 pm
- Location: Columbia, South Carolina USA
Re: new ADO functions
Lucas
Both of your requests are have different answers depending on your Database. With MS Access you can 'compact and repair' as well as just copying the .mdb or .accDb using code .. however, Sql Server and Oracle are not that simple and require a Data Base Administrator to perform those tasks.
RIck Lipkin
- Optimice table.
- Backup table.
Both of your requests are have different answers depending on your Database. With MS Access you can 'compact and repair' as well as just copying the .mdb or .accDb using code .. however, Sql Server and Oracle are not that simple and require a Data Base Administrator to perform those tasks.
RIck Lipkin
- Antonio Linares
- Site Admin
- Posts: 42508
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 30 times
- Been thanked: 72 times
- Contact:
Re: new ADO functions
Rick,
How to do it from ADO ? thanks![Smile :-)](./images/smilies/icon_smile.gif)
With MS Access you can 'compact and repair'
How to do it from ADO ? thanks
![Smile :-)](./images/smilies/icon_smile.gif)
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
Re: new ADO functions
Antonio,
EMG
Antonio Linares wrote:Rick,With MS Access you can 'compact and repair'
How to do it from ADO ? thanks
Code: Select all | Expand
oJro = CREATEOBJECT( "JRO.JetEngine" )
oJro:CompactDatabase( cConnectionString1, cConnectionString2 )
EMG
- Rick Lipkin
- Posts: 2668
- Joined: Fri Oct 07, 2005 1:50 pm
- Location: Columbia, South Carolina USA
Re: new ADO functions
Enrico
From my notes I recall the parameters defined as ??
Thanks
Rick Lipkin
From my notes I recall the parameters defined as ??
Code: Select all | Expand
cConnectionString1 := "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=MyDatabase.mdb"
cConnectionString2 := "Provider=Microsoft.Jet.OLEDB.4.0;ataSource=MyCompactedDatabase.mdb"
Thanks
Rick Lipkin
Last edited by Rick Lipkin on Thu Jul 18, 2013 3:40 pm, edited 1 time in total.
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
Re: new ADO functions
Rick,
cConnectionString1 is the ConnectionString of the current .mdb
cConnectionString2 is the ConnectionString of the new ( repaired ) .mdb
![Smile :-)](./images/smilies/icon_smile.gif)
EMG
Rick Lipkin wrote:Enrico
cConnectionString1 is the path and name of the current .mdb ?
cConnectionString2 is the path and name of the new ( repaired ) .mdb ?
Thanks
Rick Lipkin
cConnectionString1 is the ConnectionString of the current .mdb
cConnectionString2 is the ConnectionString of the new ( repaired ) .mdb
![Smile :-)](./images/smilies/icon_smile.gif)
EMG
- Rick Lipkin
- Posts: 2668
- Joined: Fri Oct 07, 2005 1:50 pm
- Location: Columbia, South Carolina USA
Re: new ADO functions
Enrico
Thanks .. I went back and edited my post from my notes as you described it to me recently. I have not had a chance to try it yet
Rick Lipkin
Thanks .. I went back and edited my post from my notes as you described it to me recently. I have not had a chance to try it yet
![Sad :(](./images/smilies/icon_sad.gif)
Rick Lipkin
Code: Select all | Expand
cConnectionString1 := "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=MyDatabase.mdb"
cConnectionString2 := "Provider=Microsoft.Jet.OLEDB.4.0;ataSource=MyCompactedDatabase.mdb"
Re: new ADO functions
Hello,
Very exciting funcions.
MySQL has the command OPTIMIZE TABLE.
Oracle has it too.
Kind regards
Very exciting funcions.
MySQL has the command OPTIMIZE TABLE.
Oracle has it too.
Kind regards