I'm getting a error which complains about an unknown placeholder. I don't know how to get around this, and I couldn't find any code examples. Any help is greatly appreciated.
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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.