SQL 2005 Paging Error with nvarchar(max) column

Posts   
 
    
ecirpnaes
User
Posts: 21
Joined: 22-Oct-2005
# Posted on: 16-Aug-2006 04:16:49   

I'm having an issue when paging against a SQL 05 database. One of my columns is a Nvarchar(MAX). I'm using LLBLGE ver2.0, Self-servicing, SQL Server Driver and SD.TemplateBindings.SqlServerSpecif.NET20

This issue is exactly the same as this thread. http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=5635

Am I missing a patch somewhere?

-- Sean

exec sp_executesql N'CREATE TABLE #TempTable ([__rowcnt][int] IDENTITY (1,1) NOT NULL,[CommentID][Int] NULL,[OrganizationId][Int] 
NULL,[Comment][NVarChar](2147483647) NULL,[FirstName][NVarChar](50) NULL,[LastName][NVarChar](50) NULL,[CreateDate][DateTime] NULL);INSERT 
INTO #TempTable ([CommentID],[OrganizationId],[Comment],[FirstName],[LastName],[CreateDate]) SELECT DISTINCT TOP 11 [FormTracking].[Form].[FormComment].[CommentID], [FormTracking].[Form].[FormComment].[OrganizationID] AS [OrganizationId], 
[FormTracking].[Form].[FormComment].[Comment], [Services].[dbo].[UserInfo].[FirstName], [Services].[dbo].[UserInfo].[LastName], FormTracking].[Form].[FormComment].[CreateDate] FROM ( [Services].[dbo].[UserInfo]  INNER JOIN [FormTracking].[Form].[FormComment]  ON  
[Services].[dbo].[UserInfo].[UserID]=[FormTracking].[Form].[FormComment].[UserID]) WHERE ( ( [FormTracking].[Form].[FormComment].[WorkflowInstanceID] = @WorkflowInstanceId3 AND [FormTracking].[Form].[FormComment].[IsPublic] = 
@IsPublic4)) ORDER BY [FormTracking].[Form].[FormComment].[CreateDate] DESC;SELECT 
[CommentID],[OrganizationId],[Comment],[FirstName],[LastName],[CreateDate] FROM #TempTable WHERE [__rowcnt] > @__rownoStart AND [__rowcnt] 
<= @__rownoEnd ORDER BY [__rowcnt] ASC;DROP TABLE #TempTable',N'@WorkflowInstanceId3 uniqueidentifier,@IsPublic4 bit,@__rownoStart 
int,@__rownoEnd int',@WorkflowInstanceId3='505D2E5A-DBE2-4C53-94AA-68C72967C783',@IsPublic4=1,@__rownoStart=5,@__rownoEnd=10]
Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 16-Aug-2006 08:21:22   

What's the version of the "SD.LLBLGen.Pro.DQE.SqlServer.NET20.dll"?

(right click -> properties -> version -> file version)

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39903
Joined: 17-Aug-2003
# Posted on: 16-Aug-2006 10:02:56   

If you're using v2.0 of llblgen pro, you should set the SqlServer DQE in 2005 mode, which will use a CTE based query on sqlserver2005. See Using the generated code -> Database specific features.

Frans Bouma | Lead developer LLBLGen Pro
awakepb
User
Posts: 1
Joined: 06-Oct-2006
# Posted on: 06-Oct-2006 11:47:55   

Where I can find this option?

Otis wrote:

If you're using v2.0 of llblgen pro, you should set the SqlServer DQE in 2005 mode, which will use a CTE based query on sqlserver2005. See Using the generated code -> Database specific features.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39903
Joined: 17-Aug-2003
# Posted on: 06-Oct-2006 13:51:48   

awakepb wrote:

Where I can find this option?

Otis wrote:

If you're using v2.0 of llblgen pro, you should set the SqlServer DQE in 2005 mode, which will use a CTE based query on sqlserver2005. See Using the generated code -> Database specific features.

See Using the generated code -> Database specific features.

Frans Bouma | Lead developer LLBLGen Pro