2012 server

Re: 2012 server

Postby dtussman » Mon Jun 15, 2015 5:22 pm

Which is better to convert a large legacy application to SQL: SQLRDD or ADORDD?
dtussman
 
Posts: 97
Joined: Sat Jun 06, 2015 6:57 pm

Re: 2012 server

Postby Antonio Linares » Mon Jun 15, 2015 7:29 pm

I would say that AdoRdd is the best way to go as there is full source code available and Antonio Ferreira is providing a great support for it :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: 2012 server

Postby dtussman » Mon Jun 15, 2015 7:40 pm

Thanks Antonio,

Back in the 90's after much deliberation I chose Fivewin to migrate from DOS to Windows and never regretted it, so I will probably go with your advice again!

Regards,

David
dtussman
 
Posts: 97
Joined: Sat Jun 06, 2015 6:57 pm

Re: 2012 server

Postby Antonio Linares » Mon Jun 15, 2015 7:44 pm

David,

Thanks for trusting in my advice and for your support along all these years :-)

Antonio Ferreira has confirmed that he has ported a large app to AdoRdd without any source code modifications!

Thats great :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: 2012 server

Postby AHF » Tue Jun 16, 2015 7:29 am

David,

I ported a large app with no code change.

In this case was easy because the app worked already with ADS so the indexes expressions with vars were all evaluated before sent to adordd.

This should be the only exception in the code of actual apps because vars are out of scope when sent to SQL so need to be evaluated before and sent the result as a string.

Lucas is also testing in his application and so far its seems its running quite good.
Regards
Antonio H Ferreira
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: 2012 server

Postby dtussman » Tue Jun 16, 2015 4:29 pm

No code changes? I was reading that ADDRDD Error thread and it seems like you have to do quite a bit of stuff with regard to files and indexes. Plus you can't use recno() anymore, which I use a lot. But if that's all there is I guess its not too bad.
dtussman
 
Posts: 97
Joined: Sat Jun 06, 2015 6:57 pm

Re: 2012 server

Postby lucasdebeltran » Tue Jun 16, 2015 4:53 pm

David,

You have only to indicate at the begining of your application a few settings and that´s all.

Yes, you can use Recno().

This is a sample:

Code: Select all  Expand view


function Main()

  RddRegister("ADORDD",1)
  RddSetDefault("ADORDD")

   SET DATE FORMAT TO "dd-mm-yyyy" // Formato Fecha: DD-MM-AAAA
   SET CENTURY ON
   SET EPOCH TO YEAR(DATE())-98


  SET ADO TABLES INDEX LIST TO {{ "TABLE1", {"TEST1", "FIRST"} ,;
                                            {"TEST2", "LAST"} ,;
                                            {"TEST3", "AGE"} },;
                                    {"LUCAS", {"LUCAS1", "NOMBRE"} ,;
                                              {"LUCAS3", "NOMBRE", "WHERE NOMBRE = 'LUCAS'"}     }     }


  SET ADODBF TABLES INDEX LIST TO { { "TABLE1", {"TEST1", "FIRST"} ,;
                                               {"TEST2", "LAST"} ,;
                                               {"TEST3", "AGE"} },;
                                    {"LUCAS", {"LUCAS1", "NOMBRE"} ,;
                                              {"LUCAS3", "NOMBRE", "NOMBRE = 'LUCAS'" }   } }




  SET ADO DEFAULT RECNO FIELD TO "HBRECNO"

  SET AUTOPEN OFF //ON //might be OFF if you wish

  //SET AUTORDER TO 1 // first index opened can be other

  SET ADO FORCE LOCK OFF


  SET ADO DEFAULT DATABASE TO "LUCASTABLE.MDB"  ENGINE TO "ACCESS" USER TO "" PASSWORD TO ""


 



That´s all.

The rest of your code is the SAME, including filters.
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.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: 2012 server

Postby dtussman » Tue Jun 16, 2015 5:40 pm

Thanks Lucas,

That was helpful

David
dtussman
 
Posts: 97
Joined: Sat Jun 06, 2015 6:57 pm

Re: 2012 server

Postby MarcoBoschi » Mon Oct 24, 2016 7:32 am

Dear driessen,
can you post again the link in wich is explained exactly the operations to do in server and clients?
I have a lot of problems
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: 2012 server

Postby hua » Wed Oct 26, 2016 1:48 am

This is a post on Harbour Users group from someone experiencing slowness on Windows 2012 too - https://groups.google.com/forum/#!topic ... -1OKaCvTxk

HTH
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 48 guests