Click here to Skip to main content
15,894,343 members
Home / Discussions / Database
   

Database

 
AnswerRe: query takes long time! Pin
dan!sh 30-Jul-10 4:49
professional dan!sh 30-Jul-10 4:49 
AnswerRe: query takes long time! Pin
Eddy Vluggen30-Jul-10 5:07
professionalEddy Vluggen30-Jul-10 5:07 
GeneralRe: query takes long time! Pin
Jassim Rahma30-Jul-10 5:43
Jassim Rahma30-Jul-10 5:43 
GeneralRe: query takes long time! Pin
Eddy Vluggen30-Jul-10 6:04
professionalEddy Vluggen30-Jul-10 6:04 
GeneralRe: query takes long time! Pin
David Skelly30-Jul-10 6:12
David Skelly30-Jul-10 6:12 
GeneralRe: query takes long time! Pin
Eddy Vluggen30-Jul-10 6:29
professionalEddy Vluggen30-Jul-10 6:29 
AnswerRe: query takes long time! Pin
PIEBALDconsult30-Jul-10 19:13
mvePIEBALDconsult30-Jul-10 19:13 
QuestionRetrieve the value from Dynamic Sql Pin
.NET- India 30-Jul-10 2:36
.NET- India 30-Jul-10 2:36 
Hello Friends,
I've a dynamic sql and it's returning Max(TRN_AMOUNT) now i've to store this Max(TRN_AMOUNT) in a variable i.e. @NUM.

Here is my code

DECLARE @STRSQL VARCHAR(MAX),@NUM VARCHAR(MAX)
SET @STRSQL='SELECT MAX(TRN_AMOUNT) FROM TRN'
EXEC(@STRSQL)
PRINT @NUM
AnswerRe: Retrieve the value from Dynamic Sql Pin
dan!sh 30-Jul-10 3:12
professional dan!sh 30-Jul-10 3:12 
QuestionSelecting Recent row Pin
T.RATHA KRISHNAN30-Jul-10 1:41
T.RATHA KRISHNAN30-Jul-10 1:41 
AnswerRe: Selecting Recent row Pin
R. Giskard Reventlov30-Jul-10 1:43
R. Giskard Reventlov30-Jul-10 1:43 
GeneralRe: Selecting Recent row Pin
T.RATHA KRISHNAN30-Jul-10 1:52
T.RATHA KRISHNAN30-Jul-10 1:52 
GeneralRe: Selecting Recent row Pin
R. Giskard Reventlov30-Jul-10 1:55
R. Giskard Reventlov30-Jul-10 1:55 
AnswerRe: Selecting Recent row Pin
Chris Meech30-Jul-10 1:51
Chris Meech30-Jul-10 1:51 
AnswerRe: Selecting Recent row Pin
Roger Wright30-Jul-10 20:21
professionalRoger Wright30-Jul-10 20:21 
QuestionMaking with values of two rows, two entries in a new table. Pin
neus8330-Jul-10 1:17
neus8330-Jul-10 1:17 
AnswerRe: Making with values of two rows, two entries in a new table. Pin
Corporal Agarn30-Jul-10 6:09
professionalCorporal Agarn30-Jul-10 6:09 
AnswerRe: Making with values of two rows, two entries in a new table. Pin
Jörgen Andersson30-Jul-10 6:11
professionalJörgen Andersson30-Jul-10 6:11 
GeneralRe: Making with values of two rows, two entries in a new table. Pin
neus832-Aug-10 5:56
neus832-Aug-10 5:56 
QuestionVariable value in SQL Query Pin
T.RATHA KRISHNAN29-Jul-10 23:51
T.RATHA KRISHNAN29-Jul-10 23:51 
AnswerRe: Variable value in SQL Query Pin
J4amieC30-Jul-10 0:04
J4amieC30-Jul-10 0:04 
GeneralRe: Variable value in SQL Query Pin
T.RATHA KRISHNAN30-Jul-10 0:25
T.RATHA KRISHNAN30-Jul-10 0:25 
AnswerRe: Variable value in SQL Query Pin
R. Giskard Reventlov30-Jul-10 0:45
R. Giskard Reventlov30-Jul-10 0:45 
GeneralRe: Variable value in SQL Query Pin
T.RATHA KRISHNAN30-Jul-10 0:54
T.RATHA KRISHNAN30-Jul-10 0:54 
GeneralRe: Variable value in SQL Query Pin
R. Giskard Reventlov30-Jul-10 0:57
R. Giskard Reventlov30-Jul-10 0:57 

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.