Click here to Skip to main content
15,903,012 members
Home / Discussions / Database
   

Database

 
GeneralRe: Normalization question Pin
slvrscremr9-Aug-04 3:31
slvrscremr9-Aug-04 3:31 
GeneralRe: Normalization question Pin
Roger Alsing9-Aug-04 3:32
Roger Alsing9-Aug-04 3:32 
GeneralRe: Normalization question Pin
slvrscremr9-Aug-04 3:57
slvrscremr9-Aug-04 3:57 
GeneralRe: Normalization question Pin
slvrscremr9-Aug-04 4:09
slvrscremr9-Aug-04 4:09 
GeneralRe: Normalization question Pin
Steven Campbell9-Aug-04 10:26
Steven Campbell9-Aug-04 10:26 
GeneralThreads in stored procedures Pin
Member 2866418-Aug-04 19:54
Member 2866418-Aug-04 19:54 
QuestionOptimezed use ADO.Net? Pin
rbarzallo7-Aug-04 6:58
rbarzallo7-Aug-04 6:58 
AnswerRe: Optimezed use ADO.Net? Pin
slvrscremr9-Aug-04 3:23
slvrscremr9-Aug-04 3:23 
First and foremost, I suppose that "SProcedure" is short for "stored procedure", since I know no object in the .NET framework with that name. The other three have their different purposes.

SqlReader: Lightweight, very fast. Read-Only, forward-read, server-side cursor. Good for populating lists or retrieving other data that you do not need to keep readily available for transactions.

SqlCommand: Pretty much a necessity if you are going to issue a transaction to a database. The only question is whether you are going to do it in a stored procedure or a text string. If the RDBMS you are using supports stored procedures, I would unconditionally support that. Not only do you wrap your insert values in parameter objects ( prevents SQL injection hacks - another column entirely ), but the stored procedure is already pre-compiled and should execute faster than a SQL-text insert.

SqlDataAdapter: Used to fill datasets / datatables with data resulting from a query. Very powerful, as you can use this object to populate relational data from your database and use the dataset object to maintain the information in memory. You just have to be very careful about how you construct your transaction logic, as it can become a major headache.

Also, check the layout of your database's table structure. Make sure that each table has ( at least ) one index defined and that you are utilizing it as often as possible when retrieving and updating table information. Finally, check your querys and check any joins that you may have. Full table joins ( joins without indexes ) and < gasp > Cartesian joins can stall even the best server if the tables are large enough.

Hope this helps,


Darien Beer | [beer]


"I don't know. I haven't tried today." - Trumpet icon Maynard Ferguson's response when asked how high he could play.
GeneralORACLE / ADO .NET: TNS: Packet Writer Failure in parameterized query Pin
slvrscremr6-Aug-04 8:18
slvrscremr6-Aug-04 8:18 
GeneralMultiple Excel files Pin
janigorse6-Aug-04 7:58
janigorse6-Aug-04 7:58 
GeneralRe: Multiple Excel files Pin
Anonymous16-Aug-04 20:26
Anonymous16-Aug-04 20:26 
Generalbackup access database Pin
sungsunpark6-Aug-04 5:47
sungsunpark6-Aug-04 5:47 
GeneralRe: backup access database Pin
RichardGrimmer12-Aug-04 1:32
RichardGrimmer12-Aug-04 1:32 
GeneralSearching problem (serious!) Pin
RoyRose786-Aug-04 1:03
RoyRose786-Aug-04 1:03 
GeneralRe: Searching problem (serious!) Pin
Michael Potter6-Aug-04 4:21
Michael Potter6-Aug-04 4:21 
GeneralRe: Searching problem (serious!) Pin
RoyRose786-Aug-04 4:57
RoyRose786-Aug-04 4:57 
GeneralMultiple Conditionals Pin
Peter86753095-Aug-04 8:43
Peter86753095-Aug-04 8:43 
GeneralRe: Multiple Conditionals Pin
Mike Ellison5-Aug-04 13:11
Mike Ellison5-Aug-04 13:11 
GeneralRe: Multiple Conditionals Pin
EdbertP5-Aug-04 13:27
EdbertP5-Aug-04 13:27 
GeneralRe: Multiple Conditionals Pin
Peter86753099-Aug-04 4:57
Peter86753099-Aug-04 4:57 
GeneralMS SQL 7 Error Pin
payal sheth5-Aug-04 2:51
payal sheth5-Aug-04 2:51 
Generalcomparing memo fields in Access Pin
pankajdaga4-Aug-04 23:47
pankajdaga4-Aug-04 23:47 
GeneralCreating db table from DataTable Pin
matt cole3-Aug-04 2:23
matt cole3-Aug-04 2:23 
GeneralRe: Creating db table from DataTable Pin
Thea Burger3-Aug-04 3:09
Thea Burger3-Aug-04 3:09 
GeneralRe: Creating db table from DataTable Pin
matt cole3-Aug-04 19:08
matt cole3-Aug-04 19:08 

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.