Ask a Question related to ASP.NET General, Design and Development.
-
Ante Perkovic #1
Re: reading sqldatareader after conn.close()
"Naveen K Kohli" <naveenkohli@hotmail.com> wrote in message news:<uDh3MJKQDHA.2476@TK2MSFTNGP10.phx.gbl>...
Thanks.> DataReader is not exactly but sort of a connected recordset. Meaning when it
> starts reading from DB, it does not know records before hand. It reads them
> one at a time and streams them to the caller. It does not keep any thing in
> memory. Once you have read one record it forgets about it. And once you have
> read all records. You can't go back. After closing the connection you can't
> use the same data reader unless you open a new connection for it.
Can I do smt. like in code below?
Function whatever (...) as sqldatareader
...
mydatareader = blabla.executeReader
conn.close()
return mydatareader
End function
Ante
Ante Perkovic Guest
-
trouble with db conn dsn
i am working through the training from the source book with coldfushion, i have cf server set up locally on my computer, win xp pro sp2, i went to... -
Is there a way to convert a sqldatareader to a dataview?
The sqldatareader is very fast but the dataview is very versatile. I need the features of the dataview and the speed of the datareader. -
Cross-Site Scripting & sqlDataReader
I am using sqlDataReader for Showing data from the Data base. But if the Data from sql is having tags like <script>alert()</script> then it shows an... -
SqlDataReader problem
Hello, With my SqlDataReader I select 2 records. Here is a little bit of my code: SqlDataReader dr = documents.GetDocuments(ModuleId); //... -
DataGrid Custom Paging using SQLDataReader
Hi Everyone, I am trying to implement a DataGrid that uses Custom paging, but the DataSource is a SQLDataReader, not a DataSet. I have seen...



Reply With Quote

