Click here to Skip to main content
15,898,035 members
Home / Discussions / Database
   

Database

 
GeneralPlease Vote For Persian Collation in SQL Server 2008 Pin
DotNetWWW30-Oct-07 8:05
DotNetWWW30-Oct-07 8:05 
GeneralRe: Please Vote For Persian Collation in SQL Server 2008 Pin
Paul Conrad31-Oct-07 14:14
professionalPaul Conrad31-Oct-07 14:14 
QuestionBasic question on SQL [modified] Pin
niaher30-Oct-07 4:35
niaher30-Oct-07 4:35 
AnswerRe: Basic question on SQL Pin
andyharman30-Oct-07 7:04
professionalandyharman30-Oct-07 7:04 
GeneralRe: Basic question on SQL Pin
niaher30-Oct-07 7:49
niaher30-Oct-07 7:49 
GeneralRe: Basic question on SQL Pin
andyharman30-Oct-07 9:50
professionalandyharman30-Oct-07 9:50 
GeneralRe: Basic question on SQL Pin
niaher30-Oct-07 19:41
niaher30-Oct-07 19:41 
GeneralRe: Basic question on SQL Pin
andyharman31-Oct-07 3:20
professionalandyharman31-Oct-07 3:20 
You're right - it is a very controversial question Big Grin | :-D

Performance should be very similar for this type of logic - SQL-Server will cache query plans for both methods.

Stored procedures encourage:
  • Encapsulation of data-access logic - so you can substantially change the underlying SQL at a later date.
  • Better security - You can deny direct access to the database tables, and force all access via the stored procedure layer.
  • Reduced susceptablity to SQL-Injection attacks.
The downside is that you need to write more code, and many programmers don't like writing SQL.

I normally use Stored Procedures in my projects (because I tend to work for clients whose the coding standards dictate that they should be used). I normally write code generators to do the boring stuff for me.

Regards
Andy
QuestionDTS Error "Execution cancel by user" Pin
Vimalsoft(Pty) Ltd30-Oct-07 3:22
professionalVimalsoft(Pty) Ltd30-Oct-07 3:22 
AnswerRe: DTS Error "Execution cancel by user" Pin
Ghazi H. Wadi30-Oct-07 22:41
Ghazi H. Wadi30-Oct-07 22:41 
GeneralRe: DTS Error "Execution cancel by user" Pin
Vimalsoft(Pty) Ltd31-Oct-07 19:50
professionalVimalsoft(Pty) Ltd31-Oct-07 19:50 
GeneralRe: DTS Error "Execution cancel by user" Pin
Ghazi H. Wadi2-Nov-07 21:50
Ghazi H. Wadi2-Nov-07 21:50 
QuestionDateTime _Oct2007 Pin
r a j u u30-Oct-07 1:25
r a j u u30-Oct-07 1:25 
AnswerRe: DateTime _Oct2007 Pin
soni uma30-Oct-07 1:38
soni uma30-Oct-07 1:38 
GeneralRe: DateTime _Oct2007 Pin
r a j u u30-Oct-07 1:52
r a j u u30-Oct-07 1:52 
AnswerRe: DateTime _Oct2007 [modified] Pin
Senu Gandhi30-Oct-07 2:07
Senu Gandhi30-Oct-07 2:07 
GeneralRe: DateTime _Oct2007 Pin
r a j u u30-Oct-07 2:14
r a j u u30-Oct-07 2:14 
GeneralRe: DateTime _Oct2007 Pin
Senu Gandhi30-Oct-07 2:16
Senu Gandhi30-Oct-07 2:16 
GeneralRe: DateTime _Oct2007 Pin
r a j u u30-Oct-07 2:19
r a j u u30-Oct-07 2:19 
GeneralRe: DateTime _Oct2007 Pin
Senu Gandhi31-Oct-07 1:48
Senu Gandhi31-Oct-07 1:48 
GeneralRe: DateTime _Oct2007 Pin
Andy *M*30-Oct-07 2:36
Andy *M*30-Oct-07 2:36 
GeneralRe: DateTime _Oct2007 Pin
Senu Gandhi31-Oct-07 1:49
Senu Gandhi31-Oct-07 1:49 
GeneralRe: DateTime _Oct2007 Pin
Colin Angus Mackay30-Oct-07 3:05
Colin Angus Mackay30-Oct-07 3:05 
GeneralRe: DateTime _Oct2007 Pin
r a j u u30-Oct-07 3:10
r a j u u30-Oct-07 3:10 
GeneralRe: DateTime _Oct2007 Pin
Colin Angus Mackay30-Oct-07 3:24
Colin Angus Mackay30-Oct-07 3:24 

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.