Click here to Skip to main content
15,914,419 members
Home / Discussions / C#
   

C#

 
GeneralRe: DLL Pin
Paul Conrad23-Dec-07 7:26
professionalPaul Conrad23-Dec-07 7:26 
GeneralTo get and set Security permissions of a file or Directory in C# Pin
Raheem MA20-Dec-07 2:25
Raheem MA20-Dec-07 2:25 
GeneralRe: To get and set Security permissions of a file or Directory in C# Pin
Giorgi Dalakishvili20-Dec-07 5:17
mentorGiorgi Dalakishvili20-Dec-07 5:17 
GeneralRe: To get and set Security permissions of a file or Directory in C# Pin
Raheem MA20-Dec-07 17:33
Raheem MA20-Dec-07 17:33 
QuestionwebBrowser ? Pin
cd_dvd20-Dec-07 2:23
cd_dvd20-Dec-07 2:23 
AnswerRe: webBrowser ? Pin
Svenwie21-Dec-07 6:21
Svenwie21-Dec-07 6:21 
GeneralC# CommandType.Text and CommandType.StoredProcedure Pin
Christopher Stratmann20-Dec-07 2:19
Christopher Stratmann20-Dec-07 2:19 
GeneralRe: C# CommandType.Text and CommandType.StoredProcedure Pin
TJoe20-Dec-07 2:27
TJoe20-Dec-07 2:27 
There are two things to consider: performance and flexibility. For performance, you may see a slight improvement with SPs because SQL Server can "compile" them ahead of time. When performing ad-hoc queries, SQL Server must "compile" them every time (with some exceptions). If you are running simple selects then you probably would never notice an improvement.

When doing simply selects, your main benefit comes from flexibility. SPs allow you to quickly and easily change the underlying T-SQL code (whether it's a simple select or something more complex) *without* having to re-compile your .Net code. It is possible to "store" the T-SQL code in a config file. This would still allow you to change your code without recompiling your binaries, but SPs are generally the preferred method.
Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

GeneralRe: C# CommandType.Text and CommandType.StoredProcedure Pin
Not Active20-Dec-07 4:11
mentorNot Active20-Dec-07 4:11 
GeneralDataList item command Pin
mohitmastermind20-Dec-07 2:14
mohitmastermind20-Dec-07 2:14 
GeneralRe: DataList item command Pin
DannyAdler20-Dec-07 3:23
DannyAdler20-Dec-07 3:23 
GeneralRe: DataList item command Pin
mohitmastermind20-Dec-07 3:53
mohitmastermind20-Dec-07 3:53 
AnswerRe: DataList item command Pin
mohitmastermind20-Dec-07 3:23
mohitmastermind20-Dec-07 3:23 
AnswerRe: DataList item command Pin
Rajkumar Chaurasiya12-Feb-10 17:42
Rajkumar Chaurasiya12-Feb-10 17:42 
Generalcustomize wsdl Pin
robot_rock20-Dec-07 1:45
robot_rock20-Dec-07 1:45 
GeneralC#;how to trace DataGridView's click event Pin
kssknov20-Dec-07 1:24
kssknov20-Dec-07 1:24 
QuestionRe: C#;how to trace DataGridView's click event Pin
Ujjaval Modi20-Dec-07 1:30
Ujjaval Modi20-Dec-07 1:30 
QuestionRe: C#;how to trace DataGridView's click event Pin
kssknov20-Dec-07 19:22
kssknov20-Dec-07 19:22 
Generalcompile error Pin
arkiboys20-Dec-07 1:17
arkiboys20-Dec-07 1:17 
GeneralRe: compile error Pin
J4amieC20-Dec-07 1:26
J4amieC20-Dec-07 1:26 
GeneralRe: compile error Pin
arkiboys20-Dec-07 1:36
arkiboys20-Dec-07 1:36 
GeneralRe: compile error Pin
Pete O'Hanlon20-Dec-07 1:58
mvePete O'Hanlon20-Dec-07 1:58 
GeneralRe: compile error Pin
J4amieC20-Dec-07 2:04
J4amieC20-Dec-07 2:04 
GeneralRe: compile error Pin
Pete O'Hanlon20-Dec-07 2:37
mvePete O'Hanlon20-Dec-07 2:37 
GeneralRe: compile error Pin
J4amieC20-Dec-07 2:58
J4amieC20-Dec-07 2:58 

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.