in reply to Re^2: SQL in perl/tk
in thread SQL in perl/tk

Check for an error: die $dbh->errstr if ! defined $msg;

Not only after the DB connect, but after the statement is run.

Replies are listed 'Best First'.
Re^4: SQL in perl/tk
by vsurend (Novice) on Jan 17, 2012 at 10:16 UTC
    Hurray! got the issue... It was that wrong userid/pwd that eat up my days....Thanks a lot for all the valuable suggestions.....