Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Perl or SQL ?

by Anonymous Monk
on Dec 21, 2005 at 10:29 UTC ( [id://518273]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl or SQL ?
in thread Perl or SQL ?

I've just figured it out
$sth=$dbh->prepare("@sqlcmd"); $sth->execute; while (($data) = $sth->fetchrow) { if($data =~ /create/) { print "$data\n"; } }
I've simplified the regex I really need to use to demonstrate what I was attempting to do.
I agree that for larger datasets the create view/bcp out is the way to go. Performance testing has revealed this to be the case.
Thanks for all the responses, this is a top class site

Replies are listed 'Best First'.
Re^4: Perl or SQL ?
by Anonymous Monk on Dec 21, 2005 at 10:44 UTC
    Err I need to eat humble pie. The above code only works if I change the select to retrieve one column from sysaudits not all columns.
    Please disregard my previous post. I still have the same problem

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://518273]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found