我的代码生成此错误消息。我怎么能纠正这个?
Rpt.Bills_Per_Month Rpt = new Rpt.Bills_Per_Month();
Rpt.SetParameterValue("@Date", dateTimePicker1.Text.ToString());
Rpt.Rpt frm = new Rpt.Rpt();
frm.crystalReportViewer1.ReportSource = Rpt;
frm.ShowDialog();
ALTER proc [dbo].[month_bills]
@Date nvarchar(20)
AS
SELECT * from Pay_Bills
WHERE ((DATEPART(MM, Date_of_Pay) = @Date) AND (DATEPART(YY, Date_of_Pay) = @Date))