Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Update failed

 
   Database Forums (Home) -> Paradox RSS
Next:  Pro*C Dynamic SQL calling functions/procedures  
Author Message
mariodosreyx

External


Since: Feb 14, 2008
Posts: 1



(Msg. 1) Posted: Thu Feb 14, 2008 10:32 am
Post subject: Update failed
Archived from groups: comp>databases>paradox (more info?)

Estou usando o seguinte codigo com uma tabela paradox que pretendo
actulizar em batch
c/ o N.ª de Recibo depois de ter sido bem sucedido na Impressão e,
quando vou fazer
UpdateSQL1.ExecSQL(ukModify) tenho sempre o mesmo erro:
EDataBaseError: "Update failed" porém, actualiza se fechar e abrir o
Query1 a actualização foi efectuada.
Alguem poderá ajudar?

Obrigado

Mário Reis


Query1.Close ;
Query1.ParamByName('OLD_SEQ_INT').AsString := '0000000083' ;
Query1.ParamByName('OLD_PEFECTIVO').Value := StrToDate('2008-01-01');
Query1.Open ;
I:= StrToIntDef(Query1DOCUMENT.AsString,0)+1;
Query1.Edit;
Updatesql1.SetParams(ukModify);
UpdateSQL1.Query[ukModify].ParamByName('Document').AsString:='00000'+
INTTOSTR(I);
UpdateSQL1.Query[ukModify].Prepare;


UpdateSQL1.ExecSQL(ukModify);


UpdateSQL1.Query[ukModify].CommitUpdates;


If UpdateSQL1.Query[ukModify].UpdatesPending Then
UpdateSQL1.Query[ukModify].ApplyUpdates;

 >> Stay informed about: Update failed 
Back to top
Login to vote
Steven Green

External


Since: Nov 09, 2007
Posts: 110



(Msg. 2) Posted: Thu Feb 14, 2008 3:38 pm
Post subject: Re: Update failed [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

that is Delphi code.. you should go to the Borland forums for help..

--
Steven Green - Myrtle Beach, South Carolina USA

Diamond Software Group
http://www.diamondsg.com/main.htm
Paradox Support & Sales

Diamond Sports Gems
http://www.diamondsg.com/gemsmain.htm
Sports Memorabilia and Trading Cards

wrote in message

Estou usando o seguinte codigo com uma tabela paradox que pretendo
actulizar em batch
c/ o N.ª de Recibo depois de ter sido bem sucedido na Impressão e,
quando vou fazer
UpdateSQL1.ExecSQL(ukModify) tenho sempre o mesmo erro:
EDataBaseError: "Update failed" porém, actualiza se fechar e abrir o
Query1 a actualização foi efectuada.
Alguem poderá ajudar?

Obrigado

Mário Reis


Query1.Close ;
Query1.ParamByName('OLD_SEQ_INT').AsString := '0000000083' ;
Query1.ParamByName('OLD_PEFECTIVO').Value := StrToDate('2008-01-01');
Query1.Open ;
I:= StrToIntDef(Query1DOCUMENT.AsString,0)+1;
Query1.Edit;
Updatesql1.SetParams(ukModify);
UpdateSQL1.Query[ukModify].ParamByName('Document').AsString:='00000'+
INTTOSTR(I);
UpdateSQL1.Query[ukModify].Prepare;


UpdateSQL1.ExecSQL(ukModify);


UpdateSQL1.Query[ukModify].CommitUpdates;


If UpdateSQL1.Query[ukModify].UpdatesPending Then
UpdateSQL1.Query[ukModify].ApplyUpdates;

 >> Stay informed about: Update failed 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Update strategy? - Hi, for my wife's small business I have developed a set of tables, forms and reports in Paradox 7 under Windows. This was done a long time ago (actually started under Paradox 5, Windows 95). Everything works reasonably well so far. Now it runs under..

Update statement help! - Hello! I have 2 tables: table1.db (id, code, name) and table2.db (id, code, name) with the same structures. Due to some reasons I must update tables: set table2.id = table1.id where table2.code = table1.code I tried to do like this: update "table...

TREEVIEW EN PARADOX - He desarrollado una aplicación utilizando el TImage List de Microsoft pero en algunos eventos me saca el mensaje GPV. ? que puede ser. La aplicación se encuentra en esta direccion ftp.gestioninformatica.com.co

A Paradoxical SQL Problem - I'm trying to solve this in an old Paradox database. Any suggestions (other than "don't use Paradox") would be appreciated: I have two tables USER_SKILL (USER,SKILL_ID,SKILL_LEVEL) e.g. Fred 10 3 Fred 12 4 Jim 11 4 SKILLS (SKILL_ID,SKILL_NA...

Desktop forms - Hi, I am getting back into Paradox after a long absence and am having a hard time trying to remember how to open a form as the desktop without having the Paradox desktop in the background. I know Paradox has to be open and minimized. The command is..
   Database Forums (Home) -> Paradox All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]