in reply to SQL err in WIN32
my($DSN) = "Lake Alpine"; if (!($db = new Win32::ODBC($DSN))){ die "Error connecting: " . Win32::ODBC::Error() . "\n";
($SqlStatement) = "SELECT * FROM Mailing List"; if ( $db->Sql($SqlStatement)){ { print "error submitting SQL statment " . $db->Error(). "\n"; }
When I run the code with those statements, I get to the next part of the code which executes and it prints out "Read a record" over and over again. If you're going to actually want to read your data, you'll have some work to do on that part of the code. If you find you need help with that part, just come on back and ask more questions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SQL err in WIN32
by Robertn (Hermit) on Jul 31, 2004 at 02:30 UTC | |
by WhiteBird (Hermit) on Jul 31, 2004 at 15:27 UTC | |
by Robertn (Hermit) on Aug 01, 2004 at 20:45 UTC | |
by WhiteBird (Hermit) on Aug 02, 2004 at 13:31 UTC |