954,560 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

SqlDataReader

Dim myReader2 As SqlDataReader


can any one tellme why i get this error:

type 'SqlDataReader'is not defined

thanks. :D

joel987
Newbie Poster
2 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

ist ok solved. needed

Dim myReader2 As System.Data.SqlClient.SqlDataReader

joel987
Newbie Poster
2 posts since Apr 2005
Reputation Points: 10
Solved Threads: 0
 

ist ok solved. needed

Dim myReader2 As System.Data.SqlClient.SqlDataReader

One thing that would help out if you are using multiple readers or what not on a page just do an import ie.

Imports System.Data.SqlClient


Then you could do

Dim myReader2 As SqlDataReader

Maybe that will save you some time in the future.

Miller

millers_35
Newbie Poster
18 posts since Apr 2005
Reputation Points: 11
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You