Hello DW Forum, i am a new member between you and this is my first post
i am building a website mostly uses Stored Procedure, but now i am facing a problem such that i want to call the SP more than one time from the .vb page
this is my SQL SP:
ALTER PROCEDURE dbo.plnCs
@plan int,
@level int
AS
SELECT p.CNo, c.CLevel FROM Plans p, Course c
WHERE p.CNo=c.CNo AND p.[Year]=@plan AND c.CLevel=@level
RETURN
and this is my VB statements that call the SP:
...
csrDa.SelectCommand.CommandType = CommandType.StoredProcedure
csrDa.SelectCommand.Parameters.AddWithValue("@plan", plan)
csrDa.SelectCommand.Parameters.AddWithValue("@level", x)
the values of x range from 1 to 8
please help
thx