Click here to Skip to main content
15,906,766 members
Home / Discussions / Database
   

Database

 
GeneralRe: reporting left to right instead of top to bottom Pin
gavindon31-Mar-11 8:27
gavindon31-Mar-11 8:27 
QuestionDoes it make sense to use CLR Stored Procedures Pin
Jani Giannoudis29-Mar-11 22:11
mvaJani Giannoudis29-Mar-11 22:11 
AnswerRe: Does it make sense to use CLR Stored Procedures Pin
Wayne Gaylard29-Mar-11 22:41
professionalWayne Gaylard29-Mar-11 22:41 
AnswerRe: Does it make sense to use CLR Stored Procedures Pin
PIEBALDconsult30-Mar-11 3:23
mvePIEBALDconsult30-Mar-11 3:23 
GeneralRe: Does it make sense to use CLR Stored Procedures Pin
Jani Giannoudis30-Mar-11 21:43
mvaJani Giannoudis30-Mar-11 21:43 
GeneralRe: Does it make sense to use CLR Stored Procedures Pin
PIEBALDconsult31-Mar-11 2:52
mvePIEBALDconsult31-Mar-11 2:52 
GeneralRe: Does it make sense to use CLR Stored Procedures Pin
Jani Giannoudis31-Mar-11 3:44
mvaJani Giannoudis31-Mar-11 3:44 
AnswerRe: Does it make sense to use CLR Stored Procedures Pin
Wendelius31-Mar-11 7:27
mentorWendelius31-Mar-11 7:27 
Hi,

CLR procedures are handy and the programmability is much wider than using plain T-SQL. However, depending on the specs it may/may not be wise to use them.

Few thoughts:
- if you're working with sets (possibly with large amount of rows), building a procedure or function that works row-based may cause intolerable response times. SQL is very good in set based operations (it's designed for that Smile | :) ).
- if you need calculations, complex logic etc then the programmability of .Net will offer much more possibilities over SQL and it may be a better option.

Based on the examples you've written, they may be fairly easy to do with SQL using proper conditions etc and in that case the performance would be far better. But as they were only examples I'm not able to say if that's really the situation.

A good rule of thumb could be that there's usually no need to replace such functionality with CLR operations that already exists in SQL itself unless there's some other benefits and not too much downsides. Smile | :)

Best regards,

mika
The need to optimize rises from a bad design.My articles[^]

QuestionTransact SQL conditional Select Pin
butchzn29-Mar-11 0:29
butchzn29-Mar-11 0:29 
AnswerRe: Transact SQL conditional Select Pin
Eddy Vluggen29-Mar-11 0:36
professionalEddy Vluggen29-Mar-11 0:36 
GeneralRe: Transact SQL conditional Select Pin
butchzn29-Mar-11 2:01
butchzn29-Mar-11 2:01 
GeneralRe: Transact SQL conditional Select Pin
Eddy Vluggen29-Mar-11 4:22
professionalEddy Vluggen29-Mar-11 4:22 
GeneralRe: Transact SQL conditional Select Pin
Mycroft Holmes29-Mar-11 13:24
professionalMycroft Holmes29-Mar-11 13:24 
AnswerRe: Transact SQL conditional Select Pin
PIEBALDconsult29-Mar-11 15:29
mvePIEBALDconsult29-Mar-11 15:29 
QuestionHow to show the hindi records through ms sql database Pin
Raghav Singh27-Mar-11 23:53
Raghav Singh27-Mar-11 23:53 
AnswerRe: How to show the hindi records through ms sql database Pin
dan!sh 28-Mar-11 5:51
professional dan!sh 28-Mar-11 5:51 
GeneralRe: How to show the hindi records through ms sql database Pin
Wendelius28-Mar-11 6:33
mentorWendelius28-Mar-11 6:33 
GeneralRe: How to show the hindi records through ms sql database Pin
dan!sh 28-Mar-11 6:56
professional dan!sh 28-Mar-11 6:56 
QuestionControl editing rows in Server and client projects Pin
vahidfallahi27-Mar-11 18:36
vahidfallahi27-Mar-11 18:36 
AnswerRe: Control editing rows in Server and client projects Pin
Wendelius27-Mar-11 19:00
mentorWendelius27-Mar-11 19:00 
AnswerRe: Control editing rows in Server and client projects Pin
Mycroft Holmes27-Mar-11 21:26
professionalMycroft Holmes27-Mar-11 21:26 
QuestionRestore SQL Database Pin
εїзεїзεїз27-Mar-11 3:15
εїзεїзεїз27-Mar-11 3:15 
AnswerRe: Restore SQL Database Pin
Wendelius27-Mar-11 4:55
mentorWendelius27-Mar-11 4:55 
AnswerRe: Restore SQL Database Pin
Prasanta_Prince13-Apr-11 1:41
Prasanta_Prince13-Apr-11 1:41 
Questionwant a school good database ( tables and columns) Pin
my name is coder ! ! !27-Mar-11 1:54
my name is coder ! ! !27-Mar-11 1:54 

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.