----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Rlabh Message 7 in Discussion Hi Sitaraman, Thanks for the corrections. I have few doubts that I have listed below. Open a Visual Studio.NET project and create a DataReader object by using the New keyword as mentioned below. Dim sdrReader as New SqlDataReader() and you will find VS.NET displaying error by underlining sdrReader. The tool tip if you check is mentioned below. I have copied as it is : System.Data.SqlClient.SqlDataReader.Private overloads Sub New (command as System.Data.SqlClient.SqlCommand)' is not accessible in this context because it is Private. This means the constructor for DataReader is overloaded and is private. The constructor that you have mentioned : Friend Sub New(ByVal command As SqlCommand) End Sub is infact for the base class. I will appreciate if you can send me some links on DataReader that explain DataReader constructor. Since I did not find any link on this, my ideas are purely on my interpretation. Also, I correct myself and agree with you that ExecuteReader is a method of SQLCommand and not that of DataReader. It was by typing mistake. Regards, Rajesh K Labh ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDOTNET/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
