G
Guest
Hi I try this funation in SQL2K It works fine.
But I'm getting the following error in my ASPX Page
There was no problem with following statement when talking to SQL7.
Please advice. & Thanks
Select CONVERT(varchar(20),SUM(CONVERT(numeric(20),F.Fee_Amount_VC))) 'Fee
Sum' FROM Bpc_T S,Fee_T F WHERE (Active_Bpc_CH = 'Yes') AND
(F.Fee_Recurring_CH = 'Yes') AND (F.Series_ID IS NULL OR F.Series_ID = '0')
AND (S.Bpc_ID = F.Bpc_ID);An Error has occured:
System.Data.SqlClient.SqlException: Error converting data type varchar to
numeric. at System.Data.SqlClient.SqlDataReader.Read() at
WebApplication1.wfrmRRevenue.Bpc_RSum() in
C:\Inetpub\wwwroot\WebApplication1\wfrmRRevenue.aspx.vb:line 975
But I'm getting the following error in my ASPX Page
There was no problem with following statement when talking to SQL7.
Please advice. & Thanks
Select CONVERT(varchar(20),SUM(CONVERT(numeric(20),F.Fee_Amount_VC))) 'Fee
Sum' FROM Bpc_T S,Fee_T F WHERE (Active_Bpc_CH = 'Yes') AND
(F.Fee_Recurring_CH = 'Yes') AND (F.Series_ID IS NULL OR F.Series_ID = '0')
AND (S.Bpc_ID = F.Bpc_ID);An Error has occured:
System.Data.SqlClient.SqlException: Error converting data type varchar to
numeric. at System.Data.SqlClient.SqlDataReader.Read() at
WebApplication1.wfrmRRevenue.Bpc_RSum() in
C:\Inetpub\wwwroot\WebApplication1\wfrmRRevenue.aspx.vb:line 975