Forums - C# Corner

Forum guidelines
Maria

Maria

  • 0
  • 0
  • 0

execute a select count sql in c#

Dec 8 2008 7:39 PM

I am trying to execute a simple sql select statement using C# and I want to return the number of rows.  What is the correct syntax.

SELECT Count(*) FROM InvData


Answers (3)

Download Free eBooks

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.