Quantcast
Channel: Displaying only active records
Viewing all articles
Browse latest Browse all 16

Re: Displaying only active records

$
0
0

stabes

Thanks Rion.

Looking inside the DB I notice that the value of the column IsApproved is actually defined as being either True or False - not simply text "IsApproved".
I suppose that would explain why the number of active records returned is zero :-) Back to the drawing board.

Thanks again for your assistance. Appreciated.

Martin

I addressed this in my earlier response (as I thought that using an actual "IsApproved" string was bizarre and that your field was likely a bit and not a VARCHAR). You just need to compare it to 1 :

SELECT COUNT(*) FROM aspnet_Membership WHERE IsApproved = 1


Viewing all articles
Browse latest Browse all 16

Trending Articles



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