C# - using TableAdapter to return a single value from stored procedure returns null
问题 I do not understand but my stored procedure which I added to table adapter only returns null value. It is supposed to return a simple integer value. In the preview I had with data set desinger, I could clearly get the integer value that I wanted. But for some reason I cannot get the value from my codes. I followed the instruction of MSDN library: http://msdn.microsoft.com/en-us/library/37hwc7kt(VS.80).aspx My code for c# is: humansDataSetTableAdapters.ProfilesTableAdapter tableAdapter = new