Click here to Skip to main content
15,888,816 members
Home / Discussions / Database
   

Database

 
AnswerRe: CPU Process on Clinet/Server? Pin
Hesham Amin14-Jun-08 9:19
Hesham Amin14-Jun-08 9:19 
GeneralRe: CPU Process on Clinet/Server? Pin
LordCover15-Jun-08 1:55
LordCover15-Jun-08 1:55 
Questionhow i can roll back today transaction Pin
wasimsharp13-Jun-08 19:43
wasimsharp13-Jun-08 19:43 
AnswerRe: how i can roll back today transaction Pin
Ashfield15-Jun-08 21:08
Ashfield15-Jun-08 21:08 
AnswerRe: how i can roll back today transaction Pin
Alsvha16-Jun-08 2:11
Alsvha16-Jun-08 2:11 
QuestionProblem using FillSchema Pin
FerJones13-Jun-08 14:23
FerJones13-Jun-08 14:23 
QuestionStored Procedure not working with parameters as sort order Pin
Brendan Vogt13-Jun-08 2:22
Brendan Vogt13-Jun-08 2:22 
AnswerRe: Stored Procedure not working with parameters as sort order Pin
SomeGuyThatIsMe13-Jun-08 2:29
SomeGuyThatIsMe13-Jun-08 2:29 
I'm fairly certain that it wont evaulate the variable @SortOrder to get the direction. however you can do

EXEC ('SELECT DISTINCT * '+
'FROM tblResult WITH (NOLOCK) '+
'WHERE sRequestedNB = ' + @RequestedNB +
'ORDER BY sSalary ' + @SortOrder)

which will create then execute the string including evaluating the varibles. you could also put the sring into a varchar varible so that you can do SELECT or EXEC on it for testing purposes. limiting the size of your sort order varible to 3 (ASC, DSC) would help prevent someproblems from wherever this gets called. Hope this works for you.

Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

AnswerRe: Stored Procedure not working with parameters as sort order Pin
Ashfield13-Jun-08 2:37
Ashfield13-Jun-08 2:37 
AnswerRe: Stored Procedure not working with parameters as sort order Pin
Alsvha13-Jun-08 3:03
Alsvha13-Jun-08 3:03 
GeneralRe: Stored Procedure not working with parameters as sort order Pin
Ashfield13-Jun-08 3:56
Ashfield13-Jun-08 3:56 
Questionproblem in creating sql reports in asp.net Pin
prakss13-Jun-08 1:51
prakss13-Jun-08 1:51 
QuestionSQL Query - If condition Pin
aaraaayen12-Jun-08 20:56
aaraaayen12-Jun-08 20:56 
AnswerRe: SQL Query - If condition Pin
Ashfield12-Jun-08 21:08
Ashfield12-Jun-08 21:08 
GeneralRe: SQL Query - If condition Pin
aaraaayen12-Jun-08 21:38
aaraaayen12-Jun-08 21:38 
GeneralRe: SQL Query - If condition Pin
Ashfield12-Jun-08 21:39
Ashfield12-Jun-08 21:39 
QuestionRestore backup from sql server 2005 to 2000 Pin
PrakashBhaskar12-Jun-08 19:56
PrakashBhaskar12-Jun-08 19:56 
AnswerRe: Restore backup from sql server 2005 to 2000 Pin
Parwej Ahamad12-Jun-08 20:48
professionalParwej Ahamad12-Jun-08 20:48 
AnswerRe: Restore backup from sql server 2005 to 2000 Pin
Mycroft Holmes12-Jun-08 20:49
professionalMycroft Holmes12-Jun-08 20:49 
QuestionError in Mail Triggering Pin
sabaMCA12-Jun-08 11:54
sabaMCA12-Jun-08 11:54 
AnswerRe: Error in Mail Triggering Pin
Parwej Ahamad12-Jun-08 17:43
professionalParwej Ahamad12-Jun-08 17:43 
QuestionSql cursor problem... Pin
tthellebuyck12-Jun-08 4:38
tthellebuyck12-Jun-08 4:38 
AnswerRe: Sql cursor problem... Pin
A Wong12-Jun-08 4:47
A Wong12-Jun-08 4:47 
GeneralRe: Sql cursor problem... Pin
tthellebuyck12-Jun-08 5:08
tthellebuyck12-Jun-08 5:08 
AnswerRe: Sql cursor problem... Pin
Mark J. Miller12-Jun-08 7:46
Mark J. Miller12-Jun-08 7:46 

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.