Results 1 to 3 of 3

Thread: Program creating class using SQLDataReader [Resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member Porsche944's Avatar
    Join Date
    Apr 2005
    Location
    Ann Arbor
    Posts
    182

    Resolved Program creating class using SQLDataReader [Resolved]

    Hey Guys,
    I am trying to create a class that makes use of the SQL DataReader but I keep getting this error:

    'system.data.sqlclient.sqldatareader.private sub new(command as system.data.sqlclient.sqlcommand') is not accessibe in this context becase it is 'private'

    Here is the declarations for my class where I am getting this error the line in question is
    dim mySQLRead as new SqlDataReader

    Code:
    Public Class SQLDatabase
        Dim mySQLConnection As New SQLConnection
        Dim mySQLCommand As New SQLCommand
        Dim mySQLDataAdpater As New SqlDataAdapter
        Dim mySQLRead As New SqlDataReader
    End Class
    Last edited by Porsche944; Apr 28th, 2005 at 07:20 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width