Click here to Skip to main content
15,892,674 members
Home / Discussions / Database
   

Database

 
GeneralRe: SqlDataReader Pin
Colin Angus Mackay13-May-05 6:56
Colin Angus Mackay13-May-05 6:56 
GeneralRe: SqlDataReader Pin
Member 195262813-May-05 7:12
Member 195262813-May-05 7:12 
GeneralRe: SqlDataReader Pin
Albert Pascual13-May-05 13:27
sitebuilderAlbert Pascual13-May-05 13:27 
GeneralRe: SqlDataReader Pin
Colin Angus Mackay13-May-05 21:54
Colin Angus Mackay13-May-05 21:54 
GeneralRe: SqlDataReader Pin
Albert Pascual16-May-05 5:35
sitebuilderAlbert Pascual16-May-05 5:35 
GeneralRe: SqlDataReader Pin
Colin Angus Mackay16-May-05 5:42
Colin Angus Mackay16-May-05 5:42 
GeneralRe: SqlDataReader Pin
Albert Pascual16-May-05 5:56
sitebuilderAlbert Pascual16-May-05 5:56 
GeneralRe: SqlDataReader Pin
Colin Angus Mackay16-May-05 6:00
Colin Angus Mackay16-May-05 6:00 
Albert Pascual wrote:
Why top make 2 requests into the database when you can just get the container DataView with properties like DataView.Count?

I wasn't advocating 2 requests. I was suggesting one request with two SQL Statements in it. Something like this:
SqlCommand cmd = new SqlCommand("SELECT COUNT(*) FROM MyTable; SELECT col1, col2, etc FROM MyTable");



Albert Pascual wrote:
GC will take care of calling Dispose or you can do it too.

Why make two copies in the first place. If it is a large enough set of data that's going to hit memory fairly hard.

[EDIT]
Also, if the code is already written for using a DataReader, why make more modifications than is necessary.
[/EDIT]


My: Blog | Photos | Next SQL Presentation
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More


GeneralRe: SqlDataReader Pin
Albert Pascual16-May-05 6:31
sitebuilderAlbert Pascual16-May-05 6:31 
GeneralRe: SqlDataReader Pin
Colin Angus Mackay16-May-05 6:39
Colin Angus Mackay16-May-05 6:39 
GeneralMS Access databases growing endlessly Pin
rocas13-May-05 3:35
rocas13-May-05 3:35 
GeneralRe: MS Access databases growing endlessly Pin
Colin Angus Mackay13-May-05 4:45
Colin Angus Mackay13-May-05 4:45 
GeneralRe: MS Access databases growing endlessly Pin
Desi Bravo13-May-05 11:59
Desi Bravo13-May-05 11:59 
GeneralRe: MS Access databases growing endlessly Pin
rocas17-May-05 0:25
rocas17-May-05 0:25 
GeneralPass array as parameter SQL Procedure Pin
jeetendradhakane13-May-05 1:54
jeetendradhakane13-May-05 1:54 
GeneralAFAIK Pin
niansah13-May-05 1:31
niansah13-May-05 1:31 
GeneralRe: AFAIK Pin
Colin Angus Mackay13-May-05 1:55
Colin Angus Mackay13-May-05 1:55 
GeneralRe: AFAIK Pin
Rob Graham13-May-05 2:43
Rob Graham13-May-05 2:43 
GeneralRe: AFAIK Pin
niansah13-May-05 5:19
niansah13-May-05 5:19 
GeneralRe: AFAIK Pin
Colin Angus Mackay13-May-05 5:35
Colin Angus Mackay13-May-05 5:35 
GeneralRe: AFAIK Pin
niansah13-May-05 7:12
niansah13-May-05 7:12 
GeneralRe: AFAIK Pin
Colin Angus Mackay13-May-05 9:33
Colin Angus Mackay13-May-05 9:33 
GeneralRename a table Pin
Andy *M*12-May-05 23:38
Andy *M*12-May-05 23:38 
GeneralRe: Rename a table Pin
Colin Angus Mackay13-May-05 4:49
Colin Angus Mackay13-May-05 4:49 
QuestionHow to retrieve, insert and modify OLE Object from MS Access database??? Pin
Member 159750212-May-05 20:18
Member 159750212-May-05 20:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.