jsk007 has asked for the wisdom of the Perl Monks concerning the following question:
I will be recieving a set of .sql files name along with its path in an Excel file. I have to read these sql scripts name along with its path and compile it from Perl. In oracle there are two commands which helps in achieving this
Sta "filepath/filename.sql"; or @filepath/filename.sql;
both these queries when executed in oracle runs absolutely fine. But when i execute this query via the execute method DBI, it throws the following error.
foreach my $i (1..$#input) { $script=$input[$i][1].$input[$i][0]; my $compilation_query="\@$script"; print "$compilation_query\n"; my $sth=$db_conn_obj->prepare($compilation_query) or die "prepare +err:". $db_conn_obj->errstr; $sth->execute() or die "Cannot execute:".$sth->errstr; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Compilation of Sql Script file(.sql) from Perl
by almut (Canon) on Apr 28, 2009 at 10:44 UTC | |
|
Re: Compilation of Sql Script file(.sql) from Perl
by Anonymous Monk on Apr 28, 2009 at 09:52 UTC |