1
Answer

How to add table to stored procedure

Sivakumar

Sivakumar

9y
321
1
Hi,
 
this is my table structure :
 
 
 
and this is my stored procedure :
 
ALTER PROCEDURE [dbo].[uspGetAllTeamMembers](@TeamID INT)

AS

BEGIN


SELECT

tm.TeamID,
m.MemberID,

m.MemberName,

m.MemberStatus,

ml.MemberLoginName,
ml.MemberLoginID,

tm.MemberJoinedDate,

tm.MemberLeftDate


FROM TeamMember tm

INNER JOIN MemberLogin ml

ON tm.MemberLoginID = ml.MemberLoginID

INNER JOIN Member m

ON m.MemberID = ml.MemberID


WHERE tm.TeamID = @TeamID


END
 
so i want to add another table Team to this stored procedure to get the TeamStatus values=1
 
please give a help
Answers (1)
2
Ajeesh

Ajeesh

NA 349 1.6k 7y
If you are looking for a code to get the selected values from checkboxlist then you can use below code
  1. var checkboxValues = [];  
  2.                 //Get selected value from checkbox like below  
  3.                 $('[id*=chktagindex] input:checked').each(function () {  
  4.                     checkboxValues.push(this.value);  
  5.                 });  
  6.                 var result = checkboxValues.toString();  
 You need to change the checkboxlist markup like below
  1. <asp:CheckBoxList ID="chktagindex" runat="server" Width="162px">  
  2.                 <asp:ListItem Text="TagIndex1" Value="TagIndex1"> </asp:ListItem>  
  3.                 <asp:ListItem Text="TagIndex2" Value="TagIndex2"></asp:ListItem>  
  4.                 <asp:ListItem Text="TagIndex3" Value="TagIndex3"></asp:ListItem>  
  5.             </asp:CheckBoxList>  
 
0
Suraj Kumar

Suraj Kumar

NA 1.3k 14.4k 7y
Hi Nitish,
As you have given heading of your question "checkboxlist select query in j query" and also provided your code snippet. But, you have not properly ask what difficulty you are facing? So, can you modify your question for better understanding?
Thanks