Ye stupid to speak of line in code. I meant this line:"//-----------"
Just because you knew what you meant, doesn't mean that people who can't
figure it out are stupid. You expressed yourself poorly.
I dont understand what the two lines under this line are doing.
You're using C# to access a package(?) named System.Data.OleDb. You'll
get the best answers in a forum where that package is on-topic, and this
is NOT such a forum. I know nothing about either C# or that package, so
the best I can do is guess - but the code seems pretty clear. You're
sufficiently confused that you're posting questions to the wrong forum,
and insulting those who you're asking for help, so even my "stupid"
guesses might be an improvement over your confusion:
OleDbCommand cmd = new OleDbCommand(strSQL, con);f
This statement creates a new object of type OleDbCommand, initialized
from strSQL and con, and stores it in cmd. What initialization actually
does is up to the designer of that package, but it presumably sets 'cmd'
up to represent the execution of the SQL query specified in strSQL,
being executed against the database identified by 'con'.
OleDbDataReader dr = cmd.ExecuteReader();
The name implies that this line causes the result of the SQL query to be
read from the database.