This is because your SqlCommand object is going to return to you an instance
of SqlDataReader. You never create a datareader object yourself.
if you did the following you would have two SqlDataReader objects in memory.
and the first one would no longer have a reference to it.
SqlDataReader dr = new SqlDataReader();
dr = SqlCommand.ExecuteReader();
dr is the following case is basically a pointer. The SqlCommand return the
object that dr points to.
SqlDataReader dr
hope that clears it up for you.
Chris
"Ricola !" <se****************@tower.effeil> wrote in message
news:36*************@individual.net...
Why do I say:
SqlDataReader dr;
instead of
SqlDataReader dr = new SqlDataReader();
--
Texeme Textcasting Technology
http://texeme.com
Indie Pop Rocks @ SomaFM
http://somafm.com/