dbTalk Databases Forums  

Update failed

comp.databases.paradox comp.databases.paradox


Discuss Update failed in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mariodosreyx@gmail.com
 
Posts: n/a

Default Update failed - 02-14-2008 , 12:32 PM






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;

Reply With Quote
  #2  
Old   
Steven Green
 
Posts: n/a

Default Re: Update failed - 02-14-2008 , 02:38 PM






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

<mariodosreyx (AT) gmail (DOT) com> wrote

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;



Reply With Quote
  #3  
Old   
Steven Green
 
Posts: n/a

Default Re: Update failed - 02-14-2008 , 02:38 PM



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

<mariodosreyx (AT) gmail (DOT) com> wrote

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;



Reply With Quote
  #4  
Old   
Steven Green
 
Posts: n/a

Default Re: Update failed - 02-14-2008 , 02:38 PM



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

<mariodosreyx (AT) gmail (DOT) com> wrote

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;



Reply With Quote
  #5  
Old   
Steven Green
 
Posts: n/a

Default Re: Update failed - 02-14-2008 , 02:38 PM



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

<mariodosreyx (AT) gmail (DOT) com> wrote

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;



Reply With Quote
  #6  
Old   
Steven Green
 
Posts: n/a

Default Re: Update failed - 02-14-2008 , 02:38 PM



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

<mariodosreyx (AT) gmail (DOT) com> wrote

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;



Reply With Quote
  #7  
Old   
Steven Green
 
Posts: n/a

Default Re: Update failed - 02-14-2008 , 02:38 PM



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

<mariodosreyx (AT) gmail (DOT) com> wrote

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;



Reply With Quote
  #8  
Old   
Steven Green
 
Posts: n/a

Default Re: Update failed - 02-14-2008 , 02:38 PM



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

<mariodosreyx (AT) gmail (DOT) com> wrote

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;



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.