Click here to Skip to main content
15,925,400 members
Home / Discussions / Database
   

Database

 
QuestionWhy Procedures? Pin
Sumit Domyan10-Aug-04 7:32
Sumit Domyan10-Aug-04 7:32 
AnswerRe: Why Procedures? Pin
VenkatFor.NET10-Aug-04 8:06
VenkatFor.NET10-Aug-04 8:06 
GeneralRe: Why Procedures? Pin
Michael Potter11-Aug-04 4:37
Michael Potter11-Aug-04 4:37 
AnswerRe: Why Procedures? Pin
munawarhussain11-Aug-04 5:02
munawarhussain11-Aug-04 5:02 
GeneralSQL Server Connection Attempt Never Times Out Pin
shultas10-Aug-04 5:24
shultas10-Aug-04 5:24 
Generalvery urgent - pls help: sql server data screwed Pin
matthias s.9-Aug-04 4:07
matthias s.9-Aug-04 4:07 
GeneralRe: very urgent - pls help: sql server data screwed Pin
Bill Dean9-Aug-04 5:56
Bill Dean9-Aug-04 5:56 
GeneralRe: very urgent - pls help: sql server data screwed Pin
matthias s.9-Aug-04 13:39
matthias s.9-Aug-04 13:39 
GeneralRe: very urgent - pls help: sql server data screwed Pin
Colin Angus Mackay9-Aug-04 6:11
Colin Angus Mackay9-Aug-04 6:11 
GeneralRe: very urgent - pls help: sql server data screwed [addendum] Pin
Colin Angus Mackay9-Aug-04 6:17
Colin Angus Mackay9-Aug-04 6:17 
GeneralRe: very urgent - pls help: sql server data screwed [addendum] Pin
matthias s.9-Aug-04 13:42
matthias s.9-Aug-04 13:42 
GeneralFOR XML EXPLICIT Pin
Anonymous9-Aug-04 3:17
Anonymous9-Aug-04 3:17 
GeneralNormalization question Pin
Roger Alsing8-Aug-04 20:23
Roger Alsing8-Aug-04 20:23 
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 

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.