数据库供应商错误245

时间:2016-07-25 14:53:20

标签: c# sql-server crystal-reports

我的代码生成此错误消息。我怎么能纠正这个?

Error message

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))

0 个答案:

没有答案