DBI::ping hangs after execute failure



Hi,
I am using Active perl 5.8.7.815, SQL Server 2000 / MSDE, and ODBC. When I have a sql execute failure with following error

[Microsoft][ODBC SQL Server Driver][SQL Server]String or binary data would be truncated. (SQL-22001)
[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated. (SQL-01000)(DBD: st_execute/SQLExecute err=-1)

After that failure, I have a DBI::ping call to verify the DB connectivity, which hangs and never returns. I tried to replace DBI::ping with a simple sql statement execute, which also hangs.
Is there anyway I can check the status of $sth or $dbh after the failure? Or any cleanup I need to do after failute? or how can I avoid this kind of hanging problems.
How can I diagnose to see where it is failing?

Thanks,
Kumar Talinki




Relevant Pages

  • Re: Access ODBC "Cast" Error
    ... answered in msde. ... I get an ODBC error that mentions a "Cast" error. ... >ODBC driver is translating the field from SQL server (via Cast type ... >incrementing integer field, but don't refresh the link to Access. ...
    (microsoft.public.sqlserver.odbc)
  • Re: MSDE - 2 GB
    ... laufen jetzt MSDE und SQL-Server parallel am gleichen Rechner? ... SQL Server und MSDE laufen nicht auf dem gleichen Rechner! ... Warum ODBC?? ...
    (de.comp.datenbanken.misc)
  • Re: msde2000
    ... MSDE is the desktop version of SQL Server 2000. ... Management tools or application development tools? ... ODBC is a connection/communication technology (Open Database ...
    (microsoft.public.dotnet.framework)
  • MSDE 2000 SP3a and SBS 2003, very slow
    ... We install a software based on SQL (MSDE or SQL Server). ... developed in Delphi and connect via BDE and ODBC to the MSDE. ...
    (microsoft.public.sqlserver.msde)