Advertisement

12.19.2006 at 06:11AM PST, ID: 22097847
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

Mysql and perl DBI

Asked by prgeorge3383 in Perl Programming Language

Tags: ,

I am trying to execute the below code, I am getting the error below

use DBI;
use Time::Local;
use File::Copy;
use Date::Calc qw(:all  );
use Text::Wrap;
use IniFile;
use strict;
use Cwd;

my $db_host = "dlssql01";
my $db_name = "invoice_tmp";
my $db_name_c = "DBI:mysql:" . "$db_name;host=$db_host;mysql_multi_results=1";
my $dbh = DBI->connect( $db_name_c,"x", "y" )   || die "Database connection not made: $DBI::errstr";
my $sproc = $dbh->prepare("CALL invoice_tmp.sp_get_subscriptions(256)");
$sproc->execute      || warn "Execute failed with following error $DBI::errstr";


D:\CLEC\v5\Invoice>perl  invdriver.pl
DBD::mysql::st execute failed: PROCEDURE invoice_tmp.sp_get_subscriptions can't
return a result set in the given context at invdriver.pl line 15.
Execute failed with following error PROCEDURE invoice_tmp.sp_get_subscriptions c
an't return a result set in the given context at invdriver.pl line 15.
Driver has not implemented the disconnect_all method. at D:/Perl/site/lib/DBI.pm
 line 552
END failed--call queue aborted.


DELIMITER $$

DROP PROCEDURE IF EXISTS `invoice_tmp`.`sp_get_subscriptions`$$

CREATE PROCEDURE `sp_get_subscriptions`(p_invoiceid bigint)
BEGIN
SELECT * FROM invoice.invoice_subscription where InvoiceId = p_invoiceid ;
END$$

DELIMITER ;Start Free Trial
[+][-]12.19.2006 at 08:42AM PST, ID: 18166915

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.20.2006 at 05:43AM PST, ID: 18172967

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.20.2006 at 07:30AM PST, ID: 18173803

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.21.2006 at 03:34AM PST, ID: 18179558

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Tags: dbi, perl
Sign Up Now!
Solution Provided By: mjcoyne
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32