Thank you Greg, I allready solf it. First I changed the code this way: my $arg1 = $cookieValue . "::numeric"; my $arg2 = $suchprofil_name . "::text";
$result = $dbh->prepare ( "SELECT neues_suchprofil ( $arg1, '$arg2' ) " ) or die "Vorbereitung nicht durchfuehrbar!\n"; $result->execute() or die "Abfrage nicht ausfuehrbar -suchprofil! $DBI::errstr\n"; $result->finish(); And then I grand some priviliges on the user, which access the DBI. Now it works :-) Gruss Christian -- DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert: GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl