but I hav create a stored procedure but When trying to select parameters to crystal report It refuzing
please see the following stored procedure that I have created and tell me how can I call to crystal report:
ALTER PROCEDURE [dbo].[ViewClientTransactions]
(
@TranstionType VARCHAR(50),
@numtel bigint
)
AS
BEGIN
IF @TranstionType='TRANSFER ECASH'
BEGIN
SELECT dbo.MyLogin.numtel, dbo.MyLogin.nom, dbo.MyLogin.prenom, dbo.TransactionM.debitmonta, dbo.TransactionM.charge, dbo.TransactionM.DateTrans,
dbo.ozekimessageout.receiver
FROM dbo.MyLogin INNER JOIN
dbo.ozekimessageout ON dbo.MyLogin.id = dbo.ozekimessageout.id INNER JOIN
dbo.TransactionM ON dbo.MyLogin.numtel = dbo.TransactionM.numtel
WHERE MyLogin.numtel=@numtel
END
ELSE IF @TranstionType='RECHARGE ECASH'
BEGIN
SELECT dbo.MyLogin.numtel,dbo.MyLogin.nom, dbo.MyLogin.prenom, dbo.TransactionB.numcompte, dbo.TransactionB.debitmont, dbo.TransactionB.creditmont,
dbo.TransactionB.Datetranb, dbo.TransactionM.debitmonta, dbo.TransactionM.creditmonta, dbo.TransactionM.DateTrans, dbo.TransactionM.charge
FROM dbo.Client INNER JOIN
dbo.CompteBanque ON dbo.Client.idcarte = dbo.CompteBanque.idcarte INNER JOIN
dbo.McellAcc ON dbo.Client.idcarte = dbo.McellAcc.idcarte INNER JOIN
dbo.MyLogin ON dbo.McellAcc.numtel = dbo.MyLogin.numtel INNER JOIN
dbo.TransactionB ON dbo.CompteBanque.numcompte = dbo.TransactionB.numcompte INNER JOIN
dbo.TransactionM ON dbo.McellAcc.numtel = dbo.TransactionM.numtel
WHERE dbo.MyLogin.numtel=(SELECT numtel FROM dbo.MyLogin WHERE numtel=@numtel)
END
END