Click here to Skip to main content
15,913,055 members
Home / Discussions / Database
   

Database

 
GeneralRe: SqlHelper Class in Enterprise Library Release April 2007 Pin
ctrlnick29-Apr-07 15:46
ctrlnick29-Apr-07 15:46 
GeneralRe: SqlHelper Class in Enterprise Library Release April 2007 Pin
Colin Angus Mackay29-Apr-07 21:36
Colin Angus Mackay29-Apr-07 21:36 
QuestionBooking Pin
zeroonea29-Apr-07 9:10
zeroonea29-Apr-07 9:10 
AnswerRe: Booking Pin
Christian Graus29-Apr-07 11:15
protectorChristian Graus29-Apr-07 11:15 
GeneralRe: Booking Pin
zeroonea29-Apr-07 20:10
zeroonea29-Apr-07 20:10 
GeneralRe: Booking Pin
Christian Graus29-Apr-07 22:23
protectorChristian Graus29-Apr-07 22:23 
GeneralRe: Booking Pin
dayanandip3-Nov-09 2:25
dayanandip3-Nov-09 2:25 
Questionstored procedure conditional ASC/DESC Pin
Meysam Mahfouzi29-Apr-07 4:14
Meysam Mahfouzi29-Apr-07 4:14 
Hi,
Is it possible to make a stored procedure sort columns either ascendingly or descendingly base on a parameter? If not, should we ignore taking advantage of stored procedures and build dynamic SQL commands instead? (building a dynamic sql string in our stored procedure and then calling EXEC())

We don't want to use dynamic SQL commands due to two reasons:

1- preventing SQL injection vulnerability
2- stored procedures containing dynamic SQL are compiled everytime we execute them, which I think should be avoided as far as possible

thanks for any help
AnswerRe: stored procedure conditional ASC/DESC Pin
Arun.Immanuel29-Apr-07 5:01
Arun.Immanuel29-Apr-07 5:01 
GeneralRe: stored procedure conditional ASC/DESC Pin
Meysam Mahfouzi29-Apr-07 5:21
Meysam Mahfouzi29-Apr-07 5:21 
GeneralRe: stored procedure conditional ASC/DESC Pin
Arun.Immanuel29-Apr-07 5:58
Arun.Immanuel29-Apr-07 5:58 
GeneralRe: stored procedure conditional ASC/DESC Pin
Arun.Immanuel29-Apr-07 6:04
Arun.Immanuel29-Apr-07 6:04 
QuestionRe: stored procedure conditional ASC/DESC Pin
Meysam Mahfouzi29-Apr-07 13:43
Meysam Mahfouzi29-Apr-07 13:43 
AnswerRe: stored procedure conditional ASC/DESC Pin
Arun.Immanuel29-Apr-07 16:04
Arun.Immanuel29-Apr-07 16:04 
AnswerRe: stored procedure conditional ASC/DESC Pin
Mike Dimmick29-Apr-07 11:31
Mike Dimmick29-Apr-07 11:31 
GeneralRe: stored procedure conditional ASC/DESC Pin
Christian Graus29-Apr-07 12:18
protectorChristian Graus29-Apr-07 12:18 
QuestionPlease Help me Pin
Mohammed Sobhi29-Apr-07 2:29
Mohammed Sobhi29-Apr-07 2:29 
AnswerRe: Please Help me Pin
Arun.Immanuel29-Apr-07 4:39
Arun.Immanuel29-Apr-07 4:39 
AnswerRe: Please Help me Pin
Christian Graus29-Apr-07 11:16
protectorChristian Graus29-Apr-07 11:16 
Questionsql server connection problem Pin
Rupesh Kumar Swami28-Apr-07 0:31
Rupesh Kumar Swami28-Apr-07 0:31 
AnswerRe: sql server connection problem Pin
kubben28-Apr-07 1:21
kubben28-Apr-07 1:21 
QuestionRe: sql server connection problem [modified] Pin
Rupesh Kumar Swami30-Apr-07 20:43
Rupesh Kumar Swami30-Apr-07 20:43 
AnswerRe: sql server connection problem Pin
kubben1-May-07 3:35
kubben1-May-07 3:35 
GeneralRe: sql server connection problem Pin
Rupesh Kumar Swami1-May-07 3:54
Rupesh Kumar Swami1-May-07 3:54 
GeneralRe: sql server connection problem Pin
kubben1-May-07 4:11
kubben1-May-07 4:11 

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.