Click here to Skip to main content
15,920,633 members
Home / Discussions / Database
   

Database

 
Questionstored procedure Pin
harish.k1225-Jun-08 1:52
harish.k1225-Jun-08 1:52 
AnswerRe: stored procedure Pin
Colin Angus Mackay25-Jun-08 2:40
Colin Angus Mackay25-Jun-08 2:40 
GeneralRe: stored procedure Pin
Ashfield25-Jun-08 2:53
Ashfield25-Jun-08 2:53 
GeneralRe: stored procedure Pin
Colin Angus Mackay25-Jun-08 3:38
Colin Angus Mackay25-Jun-08 3:38 
GeneralRe: stored procedure Pin
Ashfield25-Jun-08 4:03
Ashfield25-Jun-08 4:03 
GeneralRe: stored procedure Pin
Colin Angus Mackay25-Jun-08 7:36
Colin Angus Mackay25-Jun-08 7:36 
GeneralRe: stored procedure Pin
Ashfield25-Jun-08 21:10
Ashfield25-Jun-08 21:10 
GeneralRe: stored procedure Pin
Colin Angus Mackay26-Jun-08 9:47
Colin Angus Mackay26-Jun-08 9:47 
Ashfield wrote:
those of us that produce code for a living know the pros and cons of different methods but are always open to suggestion.


You don't sound very open to suggestion. It sounds like you are tying to insult me.

All I am saying is that a stored proc is just a piece of SQL. It happens to be stored in the database rather than have an application send it out. But, you can pack quite a lot in to a SqlCommand object if you have to. And if the SQL is highly changable I'm glad of that feature. It is, admittedly, not something I've put into production code, but if you need something quick, ad hoc, and throw away these features can be very useful.

Also, you can do just as much by sticking all the SQL into the SQL Command as you can by sticking the same SQL in a stored procedure. I also don't recommend doing that in a production environment. But those of us that produce code for a living know that sometimes you need something quick and dirty to get something going, such as a test environment or for a one time migration of data from one system to another.

At the end of the day you cannot simply say you have to use stored procedures for everything. You have to be open to the possibility that you can do the job with out them sometimes and it is acceptable to do so. You also have to know that they do make a lot of sense in many other scenarios.


GeneralRe: stored procedure Pin
Ashfield26-Jun-08 10:20
Ashfield26-Jun-08 10:20 
GeneralRe: stored procedure Pin
Colin Angus Mackay26-Jun-08 13:25
Colin Angus Mackay26-Jun-08 13:25 
GeneralRe: stored procedure Pin
Ashfield26-Jun-08 21:39
Ashfield26-Jun-08 21:39 
GeneralRe: stored procedure Pin
Colin Angus Mackay26-Jun-08 22:25
Colin Angus Mackay26-Jun-08 22:25 
GeneralRe: stored procedure Pin
Pete O'Hanlon26-Jun-08 10:22
mvePete O'Hanlon26-Jun-08 10:22 
GeneralRe: stored procedure Pin
Ashfield26-Jun-08 21:22
Ashfield26-Jun-08 21:22 
GeneralRe: stored procedure Pin
Andy Brummer26-Jun-08 10:53
sitebuilderAndy Brummer26-Jun-08 10:53 
GeneralRe: stored procedure Pin
Mycroft Holmes27-Jun-08 3:49
professionalMycroft Holmes27-Jun-08 3:49 
GeneralRe: stored procedure Pin
Andy Brummer27-Jun-08 5:45
sitebuilderAndy Brummer27-Jun-08 5:45 
AnswerRe: stored procedure Pin
A Wong25-Jun-08 2:50
A Wong25-Jun-08 2:50 
GeneralRe: stored procedure Pin
Colin Angus Mackay25-Jun-08 3:36
Colin Angus Mackay25-Jun-08 3:36 
GeneralRe: stored procedure Pin
A Wong25-Jun-08 5:45
A Wong25-Jun-08 5:45 
GeneralRe: stored procedure Pin
Colin Angus Mackay25-Jun-08 7:37
Colin Angus Mackay25-Jun-08 7:37 
AnswerRe: stored procedure Pin
Andy Brummer26-Jun-08 10:50
sitebuilderAndy Brummer26-Jun-08 10:50 
Questionunable to connect to sql-server [modified] Pin
Tom Deketelaere24-Jun-08 4:09
professionalTom Deketelaere24-Jun-08 4:09 
Questionhow to use FBExport Command tool Pin
avvaru.murali24-Jun-08 3:02
avvaru.murali24-Jun-08 3:02 
RantRe: how to use FBExport Command tool Pin
Ashfield24-Jun-08 3:42
Ashfield24-Jun-08 3:42 

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.