|
From: Chris W. <ch...@cw...> - 2003-02-21 02:24:14
|
Chris McDaniel wrote: > Thank you very much! The datasource in question doesn't house any tables > that I will access directly, rather I will be running stored procedures, so > I need to form and execute my sql without using the usual spops objects... > So do you know of a way I can do this? Yep, just call $R->db with the datasource name and you'll get back your standard everyday DBI handle: my $dbh = $R->db( 'datasource_name' ); my $sql = "EXEC mysp 'foo', 'bar'"; my $sth = $dbh->prepare( $sql ); $sth->execute; ... Good luck, Chris -- Chris Winters (ch...@cw...) Building enterprise-capable snack solutions since 1988. |