Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

Getting error of “Top clause contains invalid value” on front end but in SQL Data is clearly visible

$
0
0

While binding data to Dataview getting this error but arguments are correctly sending there values. Seems DBhelper class is throwing this error but don't know why

MY PROCEDURE:

SELECT SEQ,0 FROM (SELECT TOP (@MAXLEADS) seq = ROW_NUMBER() OVER (ORDER BY number)  FROM [master]..spt_values)S

C#CODE:

long businessID =Convert.ToInt64(Session["BusinessID"]);long YEAR =Convert.ToInt64(2015);longUserID=Convert.ToInt64(Session["Contact_ID"]);BeggingDA objBeggingDA =newBeggingDA();DataView dv =(newBeggingDA()).BeggingLoadByBusinessID(YEAR, businessID,UserID);


Viewing all articles
Browse latest Browse all 4729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>