ARTICLE

How do I find out if there is no data in the table?

Posted by Praveen Kumar Articles | Visual Basic 2010 November 16, 2004
You can use ExecuteScaler method of Command object and compare if result is null.
 
Reader Level:

You can use ExecuteScaler method of Command object and compare if result is null. For example:

Private res As Object = cmmTest.ExecuteScalar()
If res Is Nothing Then
End
If

share this article :
post comment
 
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
MOST LIKED ARTICLE
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Become a Sponsor