Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: DBI Invalid Cursor State when PRINT statements are embedded in SQL

by 18th_bronzeman (Novice)
on Sep 21, 2007 at 23:00 UTC ( #640451=note: print w/replies, xml ) Need Help??


in reply to Re^4: DBI Invalid Cursor State when PRINT statements are embedded in SQL
in thread DBI Invalid Cursor State when PRINT statements are embedded in SQL

Hello guys.

I researched this one and found a site with a solution that works. It is pretty helpful, but seems a little hard to use the statements for what they were meant for, logically organizing the output. I am still working to trap the PRINT statements in a meaningful way so that they appear in the data (array or output file) the way that the DBA meant them to.

If anyone reading this is an error trapping guru it would be nice to know how to trap these statements in a meaningful way. I don't really understand how that second while loop does what it does. For now, I can only seem to get them to appear on the console.

Here is the link to the page that breaks it all down:

http://www.easysoft.com/developer/languages/perl/sql_server_unix_tutorial.html#print_statement_status_messages
  • Comment on Re^5: DBI Invalid Cursor State when PRINT statements are embedded in SQL

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://640451]
help
Chatterbox?
[Eily]: what, there's a difference between proof of concept and production?
[LanX]: 20 years ago traders were complaining about the latency of the trading system...
[ambrus]: I'm currently in the process of rewriting my proof of concept programs. They sort of developped organically as I was experimenting, so now I've got an ugly mess of multiple programs and one-liners held together by nothing. I'll have to rewrite them to som
[ambrus]: ething that's both cleanly organized and mostly automated.
LanX in train, bad connection
[Corion]: ambrus: Yeah - we're in that situation too, except that there is no time to do the reorganizing :-/
[LanX]: ... so my boss started a project with the newest sun servers and invited the traders to come on weekend to test it... and they were so pleased, that they forced him to keep it in production...
[ambrus]: Corion: sure, this is the long-term plan. The short term is that I have to run this ungodly mess to get results from the new input data today.
[Corion]: ambrus: Most of our "automation" is tied to process exit codes and a shell pipeline :-\
[LanX]: ... a week later they realized that one of the databases - which recorded how much the other banks due to this bank - was not correctly plugged

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (16)
As of 2017-03-29 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (350 votes). Check out past polls.