开发者

Value missing in IIS7/Classic ASP

开发者 https://www.devze.com 2023-03-05 03:00 出处:网络
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.

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 (i.e. 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开发者_JAVA百科 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..)

0

精彩评论

暂无评论...
验证码 换一张
取 消