The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

navdeep (1) [Avatar] Offline
#1
Hi everyone,

I modified the stored procedure as:

ALTER PROCEDURE [dbo].[StoredProcedure1]
@Num int,
@patID char(16),
@month int,
@year int,
@day int,
@view int

AS
SET NOCOUNT ON
Begin

if(@view=0) ----all
Begin
if(@num=0)
SELECT a.Field1,convert(varchar,a.Field2,103) as Repdate,b.Field7
FROM table1 AS a INNER JOIN
table2 AS b ON a.Field3= b.Field3
WHERE a.Field3 = @patID and a.Repdate =(@Day + '/' + @month + '/' + @year)
End


else if(@view=1) ---- for monthly
begin
if @Num=1

Begin
select convert(varchar,a.RepDate,103)as RepDate1 from table1 a where a.Field3=@patID and datepart(month,a.RepDate)=@month and datepart(year,RepDate)=@year and datepart(day,a.Repdate) BETWEEN @day and @day + 30
End

end

While binding this stored procedure with dataset. The multiple dates (of RepDate Field) are not displayed on the X-Axis of the Graph.Please Help me out as i am novice in this regard

Thanks In Advance
Regards
Navdeep