Re: truncated data after INSERT with undef in DBI - bug?
From: iain (irhm_at_clara.net)
Date: 03/18/04
- Next message: Anno Siegel: "Re: stripping out ASCII chars using regexp?"
- Previous message: Anno Siegel: "Re: Variable interpolation in regular expressions"
- In reply to: Brian McCauley: "Re: truncated data after INSERT with undef in DBI - bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 18 Mar 2004 11:35:01 -0000
Success! Brian pointed me in the right direction. trace shows no problem
with DBI. All your versions are lower than mine except for the SQL Server
ODBC driver (I had 2000.80.194.00 - from the original SQLsvr CD).
I've now installed SP3a on desktop, and got ODBC driver sqlsvr32.dll v
2000.081.9031.038. And my test program works OK. Your version still has a
higher number, but who cares?
There is a MS knowledge base article (814410) describing a memory leak
problem introduced with SQL Server SP3 & earlier ODBC drivers, fixed in
SP3a. I guess my problem is a similar cause.
thanks for your help,
Iain
"Brian McCauley" <nobull@mail.com> wrote in message
news:u9smg7i958.fsf@wcl-l.bham.ac.uk...
> "iain" <irhm@clara.net> writes:
>
> > With DBI and SQL Server ODBC driver I have prepared an INSERT statement
with
> > placeholders. But if the first execute has a undef (aka NULL), the
execute
> > for the following row is truncated to just the first character for the
same
> > field.
> >
> > Has anyone else found this, or got a workaround? Is it a problem with
DBI,
> > the DBD::ODBC driver or the SQL Server ODBC driver or SQL Server itself?
>
> I've run your test script here and not reproduced the problem with:
> perl5.8.0 (ActiveState 806).
> DBI 1.37
> DBD::ODBC 1.05
> SQL server ODBC driver 2000.81.9042.00
> odbc32.dll,odbccp32.dll 3.520.9042.0
> odbccr32.dll,odbccu32.dll 3.520.9030.0
> SQL server 8.00.534 (SP2)
>
> In addition to DBI tracing options mentioned by someone else you may
> also want to trace the SQL server using the SQL Profiler tool.
>
> I've experienced equally strnage problems on SQL servers lacking SP2.
>
> --
> \\ ( )
> . _\\__[oo
> .__/ \\ /\@
> . l___\\
> # ll l\\
> ###LL LL\\
- Next message: Anno Siegel: "Re: stripping out ASCII chars using regexp?"
- Previous message: Anno Siegel: "Re: Variable interpolation in regular expressions"
- In reply to: Brian McCauley: "Re: truncated data after INSERT with undef in DBI - bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|