Ye stupid to speak of line in code. I meant this line:"//-----------"
I dont understand what the two lines under this line are doing.
Those two lines are setting things up for the subsequent loop--they're
associating the SQL query stored in the string strSQL with the database
connection con established two lines previously, and then creating a
reader object to repeatedly perform that query.
Note that this is realy a .NET question not related to C at all--the
..NET calls would be the same (allowing for differences in language
syntax) in VB.NET or Powershell.