Viewing 4 posts - 1 through 4 (of 4 total)
Thank you athiraviam,
That is the solution to my problem.
I did try the same thing before I posted this problem and it did not work. Most probably I was mistyping...
October 29, 2009 at 12:11 am
Dave,
Thank you so much for your support.
I have found the culprit!
It was line in C# code where input parameter was cast into SQL equivalent:
cmd.Parameters.Add("@PageSize", SqlDbType.Bit).Value = pageSize;
instead of:
cmd.Parameters.Add("@PageSize", SqlDbType.Int).Value =...
June 22, 2009 at 8:01 am
I did confirm equality of all parameters. Anyway, if there was mismatch I would not expect to get the first row of proper result set.
June 22, 2009 at 6:19 am
Here is the code used during testing
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[grhr_Article_GetObjectTypeObjects]
@ObjectTypeint,
@PublishedOnlybit = 'false',
@MaxTextFieldLengthint,
@SortExpressionnvarchar(256) = ' AddedDate DESC ',
@PageIndexint = 0,
@PageSizeint = 100
AS
BEGIN
SET NOCOUNT ON;
DECLARE @PageLowerBound...
June 22, 2009 at 5:30 am
Viewing 4 posts - 1 through 4 (of 4 total)