> I am using Active Perl 5.8.7.815, SQL Server 2000 /
MSDE, and ODBC.
>When I have a DBI execute() failure with following error
>
>[Microsoft][ODBC SQL Server Driver][SQL Server]String or
binary data
>would be truncated. (SQL-22001)
The error message as such, means that you are trying to cram
more
characters into a char/varchar/binary/varbinary columns then
you
have space for. If you can accept truncation, you can issue
SET
ANSI_WARNINGS OFF, and the error message will go away.
However, there
are some features that are not available with this setting -
queries
to linked servers and indexes on views and computed columns
- so use
this with care.
> How can I avoid this kind of hanging problems.
> How can I diagnose to see where it is failing?
As I don't know DBI/DBD, I can't help you with that part. Of
course,
if you had used Win32::SqlServer, you would have gotten the
line
number in the error message.
--
Erland Sommarskog, Stockholm, esquel sommarskog.se
_______________________________________________
Perl-Win32-Database mailing list
Perl-Win32-Database listserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs
|