heigold1 has asked for the wisdom of the Perl Monks concerning the following question:
Here is the code:
use DBI; use CGI; $sql = "exec CM_Gandalf_Balrog"; $db_handle = DBI->connect ('dbi:ODBC:SIMVIPERAS' , '00AIBUILD01', 'aibuild01#') or die "Couldn't connect to database: $DBI::errstr\n"; $statement = $db_handle->prepare($sql) or die "Couldn't prepare query '$sql': $DBI::errstr\n"; $statement->bind_param("p_frodo","AI Clues / BBE"); $statement->bind_param("p_legolas","AI Rel 05.12"); $statement->execute() or die "Couldn't execute query '$sql': $DBI::er +rstr\n";
I get the following error which I haven't been able to get around:
Can't bind unknown placeholder 'p_frodo' at D:\Brent\Perl\connect_to_v +iper_sql_server\objects_impacted_stored_proc.pl line 57.
Am I missing something in the bind call?
Any help is greatly appreciated,
Brent.
Edited by planetscape - changed bold tags to code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: This might be just a Sql Server issue, but here goes...
by davidrw (Prior) on Feb 15, 2006 at 20:02 UTC | |
|
Re: This might be just a Sql Server issue, but here goes...
by brian_d_foy (Abbot) on Feb 15, 2006 at 20:05 UTC |