简体   繁体   中英

Value missing in IIS7/Classic ASP

I have a development server and a live server. Both are Windows Server 2008 running IIS7 and SQL Server. I have identical databases on both which I'm accessing using Classic ASP.

On my development server, everything works fine and I can create a recordset with all of the data as expected. On my live server exactly the same is true, except that in the recordset being returned, one of the field values (ie one of the columns) is empty. I've run a query on the server in SQL Server and the data is definitely there, but the ASP page is not fetching it.

Given that everything is pretty much identical on the two servers and one works and one doesn't, it looks like it might be the way Classic ASP is set up on IIS7. The field value that's not being returned is a varchar(MAX) with maybe 100 characters. Is there anything in Classic ASP on IIS7 that could prevent this data from being returned to the ASP page?

Thanks

What is your connection string?

From this link , it looks like certain older providers, like SQLNCLI , have issues. Try SQLOLEDB or SQLNCLI10 .

More info from MSDN .

Is the result coming from a string concatenation ?

Perhaps the development server has CONCAT_NULL_YIELDS_NULL set to OFF and the live to ON .

( this is a SQL Server setting and not an IIS one.. )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM