Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorted Procs -- Need Help

Status
Not open for further replies.

ArnaudAbadie

Programmer
Mar 14, 2001
43
FR
I have create the current Procedure:
create procedure DupParam(out :param1 integer,in :param2 integer,in :param3 integer,in :param4 integer);
begin
declare :maxkey integer;
insert into param(iDB,iType,iOrder,iLien,sCod,sLib)
select iDB,iType,iOrder,iLien,'Copy'+ sCod,'Copy'+sLib from param where iKey = :param2 and iDB = :param3;
select max(iKey) into :maxkey from param;
set :param1=:maxkey;
end;
Error message retrieved we I try to run the stored procedure (from Borland C++5 program or PDAC):
[Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface][Data Record Manager][SPEng][Pervasive][ODBC Engine Erreur SQL general Interface] Non unique table reference: param
 
Have you installed SP 3 for 2000?

Keep in mind even with SP 3 not all Stored procedures in pervasive are guaranteed to work

Isn’t P 2000 the best?
 
You should update to SP which is also Pervasive.SQL 2000i and then test your stored procedure in the SQL Data Manager. After that test it from your application. There are several updates to PDAC that you can get if you contact Pervasive Support or make a post on the Developer's Forum on the Pervasive site called DevTalk. It also looks like there could be some problems with your DDFs or maybe there really isn't a unique table reference.

Pervasivite
 
I'll try it as soon as possible and won't miss to know if updating my Pervasive version helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top