While attempting to fetch data from my db, I get an "Invalid attempt to read when no data is present." message and I can't find the reason for it. I'm attempting to return data for three fields, all of which are designated as being int values in the db. I have two values I'm passing into my sproc to locate the appropriate row(s) of data in the db. If I directly execute the sproc with those same two values in SQL Server Management Studio, I get four rows of data back; however, I get a row count of 0 rows after executing the "using (SafeDataReader dr = new SafeDataReader(cm.ExecuteReader))" statement.
This particular BO is 99.99% the same as another one that retrieves data without a hitch; the only difference is the name of one of the parameters I'm passing into my sproc.
What on earth could possibly be causing this?
Have you seen what you're actually sending to the db via the profiler? I usually capture the profiler output, then run that through a query in management studio.
You beat me to the post. Glad you figured it out.
Copyright (c) Marimer LLC