Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Clifford Chapman   on Aug 27 In Asp.net Category.

  
Question Answered By: Heru Chalthoum    on Aug 27

Also when you open the datareader, set the param to
CommandBehavior.CloseConnection eg:

(VB code):

myDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection)

This will close  the connection  when you close the datareader.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on dataset vs. datareader Or get search suggestion and latest updates.


Tagged: