Jump to content
Fivewin Brasil

Sobre SQLMIX


aferra

Recommended Posts

Não uso, porque queres usar isso?

// hbmk2 test sddodbc.hbc
#include "FiveWin.ch"
#include "simpleio.ch"
#include "hbrddsql.ch"
 
REQUEST SDDODBC, SQLMIX
 
FUNCTION Main()
 
   RDDSETDEFAULT( "SQLMIX" )
 
   SET( _SET_DATEFORMAT, "yyyy-mm-dd" )
 
   // try also (local)SQLEXPRESS
   ? "Connect:"
   ? RDDINFO(RDDI_CONNECT,{"ODBC","Server=.\SQLEXPRESS;Driver={SQL Server};dsn=;Uid=sa;database=test;pwd=pass" },'SQLMIX' )
 
   ? RDDINFO(RDDI_EXECUTE, "DROP TABLE test")
 
   ? RDDINFO(RDDI_EXECUTE, "CREATE TABLE test (CODE char(3), DESCR char(50), VALUE int(11))")
   ? RDDINFO(RDDI_EXECUTE, "INSERT INTO test values ('AA','Lithuania', 3369600), ('USA', 'United States of America', 305397000)")
 
   ? "Use:", DBUSEAREA( .T.,, "select * from test", "test" )
 
   ? "Alias:", ALIAS()
   ? "DB struct:", HB_VALTOEXP( DBSTRUCT() )
 
   BROWSE()
 
   INDEX ON FIELD->CODE TO TEST
   DBGOTOP()
 
   BROWSE()
 
   DBCLOSEAREA()
 
RETURN NIL
Link to comment
Share on other sites

para usar sql, horas....rsrsrsrsrsrs com ele fica tudo mais simples, poucas mudanças....enfim...

já li vario post de vários fóruns mas não consigo fazer compilar, se passa a compilação para no SSDMY e não acho a referencia e não tenho como testar,

nem usando harbour puro eu consegui

Link to comment
Share on other sites

não Valdir, tudo em ordem, não tenho duvida nenhuma em usa-la, estou fazendo um serviço e o cliente ( programador ) me pediu para avaliar essas opções, inclusive testei a ADORDD que tb achei interessante o único detalhe é que usa ODBC e me falaram e li não sei onde que é mais lento, nos teste não me pareceu, e a SQLMIX por tudo que li, seria a solução, porem não consegui faze-la funcionar e no forum que tem mais indicação dela ninguem me ajudou então abandonado...hehehe

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...