You must Sign In to post a response.
  • Category: ASP.NET

    What is idatareader in asp.net

    what is idatareader in asp.net? where can i use that? whats the difference between sqldatareader and idatareader? Kindly [rovide me with an example.

    Thanks guys..........
  • #648996
    Hi!
    >>The IDataReader is like the IDbConnection it lets you deal with most RDBMS
    >>IDataReader is refers to an interface.This means you can use any data reader you want basically. The method will accept your datareader because the datareader implements the IDataReader interface.
    >>The advantage of doing this is that the method is not specific to a specific type of data reader. You could also roll your own class that implements this interface.

    >>The SqlDataReader is a class which implements IDataReader. This means that anywhere an IDataReader may be used you can use SqlDataReader.

    Regards
    Kamlesh

    Regards
    Kamlesh Mohanty

  • #649092
    Hi,

    iDataReader:
    It is an interface.It Provides a means of reading one or more forward-only streams of result sets obtained by executing a command at a data source, and is implemented by .NET Framework data providers that access relational databases.

    Thanks,
    sql-programmers

    http://www.sql-programmers.com

    SQL Server Programmers and Consultants

  • #649172
    Difference between sqldatareader and idatareader:

    The IDataReader is an Interface for all Datareader classes.
    The SqlDataReader class inherits from the DbDataClass and adds some SQL-server specific code.

    Regards
    Mr.Rajesh
    Software Engg.


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.