Re: Large varchar columns with SQL server



brian.lukoff@xxxxxxxxx wrote on 26 Jun 2006 14:04:52 -0700:

Hi everyone,

I'm trying to track down some bugs that I read about at
http://www.aspfaq.com/show.asp?id=2188. I'm connecting to a SQL
database in ASP. Does anyone know specifically what configurations
(e.g., what versions of MDAC, what types of connections, etc.) cause
these bugs to appear? (I'm most concerned about the bugs that cause no
error to display but return no data from the field.)

I've had in the past issues where a server side cursor, returning a row in a
table with a number of text columns, resulted in no data being returned from
those columns if a column to the right of them is read before they are. Also
once you've read the data once, a second read returns an empty value. From
what I remember reading articles about this, a pointer to the text column
data on the server was discarded on the first read, and pointers to the
columns to the left of it discarded too.

Switching to client side cursors, or reading the columns from left to right
and only once, solves this. I don't know if this is still a problem for me
as my code hasn't been changed in a few years and it still works. I had
these issues with SQL Server 7 via ODBC using ADO 2.1 with MDAC 2.1.

The KB article http://support.microsoft.com/default.aspx/kb/175239 (thanks
Stephen, saved me looking it up) mentions that this is fixed in MDAC 2.1 SP2
when using the SQL Server 3.7 driver or higher.

Dan


.



Relevant Pages

  • Re: Cannot connect a remote sql server
    ... Try disabling the firewall on the client. ... I would also make sure the SQL Browser service is running and that the login credentials you're using have rights to the default database. ... I've also written a long chapter on connecting that has helped a lot of people establish and maintain connections. ... I don't know if this matter but the server I'm trying to connect to is SQL Server 2000. ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: Website Administration has errors
    ... The application is configured to use SQL Server ... permission issue when the webadmin site page try connecting to the target ... since the web admin site will use the ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • SQL Express Remote Connections
    ... TCP/IP is enabled (because i can get there from the local subnet) and if i go to the properties of the connection and go to IP Addresses they are all active but only the primary host ip is enabled. ... When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. ...
    (microsoft.public.sqlserver.setup)
  • Re: Performance really poor if calling data from sql clients
    ... This does not sound like a SQL Server issue but something to do with how the ... Andrew J. Kelly SQL MVP ... of the connection (same connecting string) needs again a while and then I ...
    (microsoft.public.sqlserver.clients)
  • Domain user cannot connect with integrated security
    ... We noticed a SQL process on our development SQL server (SQL 2k, ... I asked the user to use integrated security and not the local account - ... The domain user who is connecting is a member of a local group on the ...
    (microsoft.public.sqlserver.security)