Re: making datareaders
- From: "Chris Dunaway" <dunawayc@xxxxxxxxx>
- Date: 2 May 2006 06:30:15 -0700
dbahooker@xxxxxxxxxxx wrote:
Dim DR As New System.Data.SqlClient.SqlDataReader
DR = Nothing
First thing, you declare a new instance of a DataReader but then in
the next line you throw it away! The New keyword is not needed here
and you can delete the DR = Nothing line.
SetDataReader(DR, "EXEC spRootFoldersToCatalog")
While DR.Read
Assuming your stored procedure is executing, then you need to check if
DR is Nothing before you try to use it. I believe that is the problem.
Your stored procedure is not returning anything. You should use SQL
Profiler to help determine why you are not getting any data back.
.
- Follow-Ups:
- Re: making datareaders
- From: aaron.kempf@xxxxxxxxx
- Re: making datareaders
- References:
- making datareaders
- From: dbahooker
- making datareaders
- Prev by Date: COM problem
- Next by Date: Re: vb.net, so slow !!!???
- Previous by thread: making datareaders
- Next by thread: Re: making datareaders
- Index(es):
Relevant Pages
|