Re: large varchar columns in SQL server
- From: brian.lukoff@xxxxxxxxx
- Date: 16 Jun 2006 20:35:59 -0700
The code did use SELECT * and did not write the values to variables
before outputting. Is there a version of MDAC that these bugs are
completely gone from, regardless of how I am connecting to the
database, querying the database, or storing the values? This page was
produced around 4/2005.
Brian
Aaron Bertrand [SQL Server MVP] wrote:
I am trying to diagnose whether this problem affected some web
applications that I had written (and were run) some time ago, so I
can't be sure what version of MDAC they were run under. If I see that
access to the large varchar (or memo) fields worked at least some of
the time, can I be sure that this error didn't afflict my app? (For
example, I had users' data stored in a SQL server database that was
later retrieved via an ASP script that wrote out the values of the
fields (for each record) to a web page; the original SQL server
database is gone but we kept the resulting web page. I want to make
sure that no data is missing from this web page.)
As Bob suggests, it's going to be really hard to tell. Do you still have
the ASP code that retrieved the data at least? If so, check to make sure
that the code (a) did not use select *, (b) named memo columns last, and (c)
stuffed the value into a variable before writing it out. If some of those
things weren't done, then if MDAC was old and bad enough (do you have a
rough timeframe when the page was produced?), you may have had empty
strings. Bob also mentioned that the problem was intermittent, so it could
have gone one way or the other, and I think it would be impossible to know
for sure, even if you can collect all of the data above, unless you can find
the data source from somewhere and compare.
A
.
- Follow-Ups:
- Re: large varchar columns in SQL server
- From: brian . lukoff
- Re: large varchar columns in SQL server
- References:
- large varchar columns in SQL server
- From: brian . lukoff
- Re: large varchar columns in SQL server
- From: brian . lukoff
- Re: large varchar columns in SQL server
- From: Aaron Bertrand [SQL Server MVP]
- large varchar columns in SQL server
- Prev by Date: Re: @@IDENTITY in SQL server
- Next by Date: Re: Sessions
- Previous by thread: Re: large varchar columns in SQL server
- Next by thread: Re: large varchar columns in SQL server
- Index(es):
Relevant Pages
|