molly has asked for the wisdom of the Perl Monks concerning the following question:
Question 1:
In the subroutine that is supposed to grab the queries from my database, I run into this error output...
DBD::ODBC::st execute failed: [Microsoft][ODBC Microsoft Access Driver +] Too few parameters. Expected 2. (SQL-07002)(DBD: st_execute/SQLExec +ute err=-1) at SearchPubMed2.pl line 178. Retrieve SearchTerms - Couldn't execute statement: [Microsoft][ODBC Mi +crosoft Access Driver] Too few parameters. Expected 2. (SQL-07002)(DB +D: st_execute/SQLExecute err=-1) at SearchPubMed2.pl line 178.
my $sth = $dbh->{LongReadLen} = 255; $sth = $dbh->prepare($SearchOnSearchTermIDSQL); $sth->execute() or die "Retrieve SearchTerms - Couldn't execute statement: " . $st +h->errstr;
Question 2:
I don't know if anyone is too familiar with PubMed, but i'm using their E-Fetch utility to retrieve information from papers that come out from my query. Perlide highlights in red this line of text...
my $efetch = "$utils/efetch.fcgi?db=$db&WebEnv=" . $WebEnvID . "&query_key=" . $QueryKey . "&retmode=xml&rettype=docsum&email=email@university.edu";
...whenever I attempt to run (i'm using a different email address, obviously). Is this concatenation missing any specific variables? I imagined that the "&query_key=" would come from the output of a previous subroutine that uses E-Search to grab that value.
Thanks for any tips you might have!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: programmatic database querying
by dsheroh (Monsignor) on Jul 18, 2007 at 22:46 UTC | |
|
Re: programmatic database querying
by snopal (Pilgrim) on Jul 18, 2007 at 22:50 UTC | |
|
Re: programmatic database querying
by GrandFather (Saint) on Jul 18, 2007 at 22:50 UTC | |
by runrig (Abbot) on Jul 18, 2007 at 23:58 UTC |