Click here to Skip to main content
15,911,896 members
Home / Discussions / Database
   

Database

 
AnswerRe: Follow up Pin
Rob Graham23-Sep-06 7:52
Rob Graham23-Sep-06 7:52 
AnswerRe: Follow up Pin
Jörgen Sigvardsson23-Sep-06 8:39
Jörgen Sigvardsson23-Sep-06 8:39 
QuestionHi by using access database and i am facing lot of problems Pin
sishya22-Sep-06 17:36
sishya22-Sep-06 17:36 
AnswerRe: Hi by using access database and i am facing lot of problems Pin
Rob Graham23-Sep-06 3:51
Rob Graham23-Sep-06 3:51 
AnswerRe: Hi by using access database and i am facing lot of problems Pin
Stephen McGuire24-Sep-06 2:16
Stephen McGuire24-Sep-06 2:16 
QuestionReferencing the PK of a table in another database Pin
iskaza22-Sep-06 6:10
iskaza22-Sep-06 6:10 
AnswerRe: Referencing the PK of a table in another database Pin
Eric Dahlvang22-Sep-06 8:32
Eric Dahlvang22-Sep-06 8:32 
QuestionC# and SQL General Strategy Question Pin
Jethro6322-Sep-06 2:41
Jethro6322-Sep-06 2:41 
Greetings:

I'm learning how to access SQL databases under C#. SQL is a little new to me but I'm really kind of enjoying it. I have a general sort of question about strategies and accepted approaches though:

Let's say that I have to search a single table for records that match a certain criteria. What would be the best approach and why:

1. Implement an SqlCommand and use a SELECT statement to get SQL to do all the work and search for the records.
2. Load the table into either a DataReader or DataAdaptor and search the table myself(programmatically).

What are the key considerations? Speed? Memory usage? Which approach is faster? Safer? Is there a universally prefered approach or is it case by case?

I'm not seeing anything in the literature that I have that address these questions.

Thanks in advance to anyone that responds,
Mark
AnswerRe: C# and SQL General Strategy Question Pin
Not Active22-Sep-06 2:53
mentorNot Active22-Sep-06 2:53 
GeneralRe: C# and SQL General Strategy Question Pin
Jethro6322-Sep-06 3:52
Jethro6322-Sep-06 3:52 
GeneralRe: C# and SQL General Strategy Question Pin
Not Active22-Sep-06 4:03
mentorNot Active22-Sep-06 4:03 
GeneralRe: C# and SQL General Strategy Question Pin
Jethro6322-Sep-06 4:05
Jethro6322-Sep-06 4:05 
GeneralRe: C# and SQL General Strategy Question Pin
Jerry Hammond22-Sep-06 14:56
Jerry Hammond22-Sep-06 14:56 
AnswerRe: C# and SQL General Strategy Question Pin
Mike Dimmick23-Sep-06 0:29
Mike Dimmick23-Sep-06 0:29 
GeneralRe: C# and SQL General Strategy Question Pin
Jethro6324-Sep-06 15:55
Jethro6324-Sep-06 15:55 
QuestionMultiple select Pin
netDeveloper22-Sep-06 1:21
netDeveloper22-Sep-06 1:21 
AnswerRe: Multiple select Pin
Kschuler22-Sep-06 9:08
Kschuler22-Sep-06 9:08 
AnswerRe: Multiple select Pin
Eric Dahlvang22-Sep-06 9:37
Eric Dahlvang22-Sep-06 9:37 
AnswerRe: Multiple select Pin
Mike Dimmick23-Sep-06 0:55
Mike Dimmick23-Sep-06 0:55 
AnswerRe: Multiple select Pin
netDeveloper23-Sep-06 6:15
netDeveloper23-Sep-06 6:15 
QuestionHello ! Pin
Bravoone_200621-Sep-06 22:39
Bravoone_200621-Sep-06 22:39 
QuestionSQL Server Replication Pin
oskardiazdeleon21-Sep-06 21:28
oskardiazdeleon21-Sep-06 21:28 
AnswerRe: SQL Server Replication Pin
Hesham Amin24-Sep-06 3:18
Hesham Amin24-Sep-06 3:18 
QuestionSql,/Access/Oracle to Excel Pin
vicky0000021-Sep-06 20:59
vicky0000021-Sep-06 20:59 
Questiondeploying a .net winforms that has to connect to remote sql server Pin
steve_rm21-Sep-06 19:46
steve_rm21-Sep-06 19:46 

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.