How do I call a stored procedure using perl DBI and evaluate the output
From: Evelyn Schwartz via SQLMonster.com (forum_at_SQLMonster.com)
Date: 02/08/05
- Next message: J. Joshi: "Decision Statement"
- Previous message: Michael C#: "Re: SQL queries getting stuck"
- Next in thread: Aaron Weiker: "Re: How do I call a stored procedure using perl DBI and evaluate the output"
- Reply: Aaron Weiker: "Re: How do I call a stored procedure using perl DBI and evaluate the output"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 08 Feb 2005 18:40:26 GMT
I'm trying to run sp_dbcmptlevel @dbname='master' from within a perl
script.
What I've tried:
my $sth=$oa->prepare(qq[sp_dbcmptlevel @dbname='master']);
$sth->execute();
while (@row = $sth->fetchrow_array) {
#do something;
}
$sth->finish();
my $output;
my $sth=$oa->prepare(qq[? = sp_dbcmptlevel @dbname='master']);
$sth->bind_param_inout(1, \$output, 1000);
$sth->execute();
I'm a newbie to sql server so I may be missing something very basic.
-- Message posted via http://www.sqlmonster.com
- Next message: J. Joshi: "Decision Statement"
- Previous message: Michael C#: "Re: SQL queries getting stuck"
- Next in thread: Aaron Weiker: "Re: How do I call a stored procedure using perl DBI and evaluate the output"
- Reply: Aaron Weiker: "Re: How do I call a stored procedure using perl DBI and evaluate the output"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|