Jump to content
Fivewin Brasil

SQLRDD x TDATABASE


Pablo.Softgraf

Recommended Posts

Senhores, boa tarde !

Alguém já teve experiencia da classe TDatabase com SQLRDD, especificamente SQL SERVER, preciso gravar , e ele retorna que a classe não suporta o metodo.

Application
===========
Path and name: C:\SELLER_APONT_TEST\Softsystem1012.EXE (32 bits)
Size: 5,057,536 bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20150306)
FiveWin Version: FWHX 15.02
Windows version: 6.1, Build 7601 Service Pack 1
Time from start: 0 hours 0 mins 21 secs
Error occurred at: 19/03/2015, 14:01:05
Error description: Error SQLRDD/0 Operation not supported
Stack Calls
===========
Called from: => DBRECORDINFO( 0 )
Called from: .\source\classes\DATABASE.PRG => TDATABASE:ISRECLOCKED( 521 )
Called from: .\source\classes\DATABASE.PRG => TDATABASE:SAVE( 962 )
Called from: C:\Softgraf\Projetos\SIS\DESENVOLVIMENTO\PRG1012_SQL\TNfs.PRG => TNFS:GRAVANFS( 2183 )
Called from: C:\Softgraf\Projetos\SIS\DESENVOLVIMENTO\PRG1012_SQL\TNfs.PRG => (b)TNFS:CP_NFSC( 1324 )
Link to comment
Share on other sites

Será Kapi, nem ele me suporta ? kkkkkkk

Esta é a linha que está ocorrendo a exceção

::oDbfNFS:Save()
::oDbfNFS:Commit()

Se ele tá dizendo, é porque é né? kkkkkkkkkkk

Você está usando .DBF com SQLRDD?

Se sim, tente com o REPLACE para ver.

A classe DATABASE.PRG é nativa do FiveWin, pode ser que o pessoal do xHarbour, não previram o comando. Vai saber...

Xeiro no kangotyyy, kkkkkkkkkkkkk, abs.

Link to comment
Share on other sites

João , bom dia !

Consegui jogar uma consulta do SQLRDD para um TDATABASE, até ai , tudo bem .

o TDatabase é um espelhamento em memoria de tabelas.

mesmo que seja uma consulta, e ela estando em memoria por um TDatabase, será que eu consigo deletar um registro do DATABASE criado ?

pra manipular os dados como se fosse um ARRAY ?

Link to comment
Share on other sites

  • 2 years later...

Senhores, boa tarde !

João ,  estou tentando gravar com SQLRDD usando TDATABASE , não vai de jeito nenhum , segue trecho do código .

arquivo com o erro está em anexo.

 

if ::lNewRec
            //param->(rec_lock(.T.))
            nNumpg := param->numpg
            param->numpg ++
            //param->(dbunlock())
            ::oDbfOF:NUMPG := nNumpg
            dDtpg      := param->dataproc
            
            ::oDbfOF:Append()
            
            grava := .T.
    endif        

         if grava
            if pg->statuspg # 'E'
               ::oDbfOF:STATUS1 := ' '
            endif
            //pg->statuspg  := 'E'
            ::oDbfOF:SIGLAEMIT   := cSiglaImp 
            ::oDbfOF:HORAEMISS   := nHoraEmiss 
            ::oDbfOF:STATUSPG    := 'E'
            ::oDbfOF:CUSTPG := ::cp_of16( ::oDbfOF:PRODUTO, ::oDbfOF:QTDPRO ) // CALCULA O CUSTO
            ::oDbfOF:CODVEND:= cli->codvend
            ::oDbfOF:REPASSE:= iif( ::cRepasse="SIM" , 'S', 'N' )
            ::oDbfOF:OFTESTE:= iif( ::cOFteste="SIM" , 'S', 'N' )
            ::oDbfOF:SIGLAEMIT
            ::oDbfOF:Commit()
            ::oDbfOF:Save()

endif

 

error.log

Link to comment
Share on other sites

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...