all groups > dotnet academic > december 2003 >
You're in the

dotnet academic

group:

URRRRGEEEENNNNNTTTT !!!!!!


re: URRRRGEEEENNNNNTTTT !!!!!! mohan_kl
12/18/2003 1:44:40 PM
dotnet academic:
public SqlDataReader ExecuteReader(string connectionString, CommandType commandType, string commandText

//pass through the call providing null for the set of SqlParameter
return ExecuteReader(connectionString, commandType, commandText, (SqlParameter[])null)


Hope this helps, else mail in detail what your looking for
Cheers

---
URRRRGEEEENNNNNTTTT !!!!!! Marcus Vinícius
12/18/2003 7:04:41 PM
Hi,


I have a method "FIND" in my class, and it must return a DataReader... I
don't know how I can return a DataReader, Does anybody here know how to do
it?




--


-------------------------------------------------
Marcus Vinícius M. Montezano

Programador

Digiexpress
-------------------------------------------------

URRRRGEEEENNNNNTTTT !!!!!! Sachy
12/23/2003 11:06:07 AM
It may not work in your calling method as the connection=20
object that you used to populate DataReader object will=20
go out of scope and DataReader will not be accessible.=20
You need read the content of your datareader in the same=20
procedure where you created it. Populate the data in some=20
kinda collection and pass the collection object back.

Hope this helps.

Sachy
[quoted text, click to view]
AddThis Social Bookmark Button