How DataReader works?

前端 未结 4 625
感动是毒
感动是毒 2020-11-28 12:17

I was thinking that the SQLDataReader should not work if there is no connection to the SQLServer.

I experimented this scenario. I execute the ExecuteReader then stop

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 12:32

    The underlying connection type may well impact how much data is supplied at a time. For a small amount of data using the shared memory connector it is quite possible that all the data is sent together.

    Shared memory is the default protocol when client and server are on the same machine.

提交回复
热议问题