Click here to Skip to main content
15,905,508 members
Home / Discussions / Database
   

Database

 
AnswerRe: select a random record Pin
Blue_Boy20-Nov-10 2:37
Blue_Boy20-Nov-10 2:37 
AnswerRe: select a random record Pin
Niladri_Biswas22-Nov-10 2:25
Niladri_Biswas22-Nov-10 2:25 
Questionsave total time in mysql Pin
Jassim Rahma19-Nov-10 23:46
Jassim Rahma19-Nov-10 23:46 
AnswerRe: save total time in mysql Pin
Eddy Vluggen20-Nov-10 5:43
professionalEddy Vluggen20-Nov-10 5:43 
QuestionDatabase administrator Pin
future383919-Nov-10 12:21
future383919-Nov-10 12:21 
AnswerRe: Database administrator Pin
Dr.Walt Fair, PE19-Nov-10 13:59
professionalDr.Walt Fair, PE19-Nov-10 13:59 
AnswerRe: Database administrator Pin
PIEBALDconsult19-Nov-10 14:31
mvePIEBALDconsult19-Nov-10 14:31 
QuestionOnly get top X rows of a stored procedure's results set Pin
Brian C Hart19-Nov-10 8:06
professionalBrian C Hart19-Nov-10 8:06 
I have a question, I hope this has not been asked before

But I have a stored procedure which I have to EXEC in order to get a results set, and then pop the results set into an Excel report.

Problem is, the results set is known to have 100,000's of rows. Now, I've read on Google about SET ROWCOUNT and I did the following as a test...

SET ROWCOUNT 5

EXEC ....


However, doing that gives me nothing back, not the top 5 rows of the results set like I expect. I don't want to put a TOP 5 (or TOP X you get the idea) in my SELECT inside the stored procedure because doing that will break functionality elsewhere.

I just want the top X rows right now just for testing purposes, and then when I am ready to deploy I plan to have it give me the full query (the query runs as a scripted console app on a remote server somewhere at regularly scheduled times).

Thanks for any inputs!
Sincerely Yours,
Brian Hart

AnswerRe: Only get top X rows of a stored procedure's results set Pin
Eddy Vluggen19-Nov-10 8:14
professionalEddy Vluggen19-Nov-10 8:14 
GeneralRe: Only get top X rows of a stored procedure's results set **QUESTION ANSWERED** Pin
Brian C Hart19-Nov-10 8:39
professionalBrian C Hart19-Nov-10 8:39 
GeneralRe: Only get top X rows of a stored procedure's results set **QUESTION ANSWERED** Pin
Eddy Vluggen19-Nov-10 9:53
professionalEddy Vluggen19-Nov-10 9:53 
AnswerRe: Only get top X rows of a stored procedure's results set Pin
Chris Meech19-Nov-10 8:23
Chris Meech19-Nov-10 8:23 
GeneralRe: Only get top X rows of a stored procedure's results set Pin
Brian C Hart19-Nov-10 8:39
professionalBrian C Hart19-Nov-10 8:39 
QuestionWritting to a database Pin
Tichaona J19-Nov-10 4:31
Tichaona J19-Nov-10 4:31 
AnswerRe: Writting to a database PinPopular
Luc Pattyn19-Nov-10 5:20
sitebuilderLuc Pattyn19-Nov-10 5:20 
GeneralRe: Writting to a database Pin
Tichaona J19-Nov-10 5:27
Tichaona J19-Nov-10 5:27 
GeneralRe: Writting to a database Pin
Luc Pattyn19-Nov-10 5:38
sitebuilderLuc Pattyn19-Nov-10 5:38 
AnswerRe: Writting to a database Pin
Simon_Whale19-Nov-10 5:26
Simon_Whale19-Nov-10 5:26 
GeneralRe: Writting to a database Pin
PIEBALDconsult19-Nov-10 10:41
mvePIEBALDconsult19-Nov-10 10:41 
GeneralRe: Writting to a database Pin
Simon_Whale21-Nov-10 12:54
Simon_Whale21-Nov-10 12:54 
GeneralRe: Writting to a database Pin
PIEBALDconsult21-Nov-10 13:58
mvePIEBALDconsult21-Nov-10 13:58 
GeneralRe: Writting to a database Pin
Simon_Whale21-Nov-10 21:55
Simon_Whale21-Nov-10 21:55 
AnswerRe: Writting to a database Pin
Dr.Walt Fair, PE19-Nov-10 8:09
professionalDr.Walt Fair, PE19-Nov-10 8:09 
AnswerRe: Writting to a database Pin
PIEBALDconsult19-Nov-10 10:39
mvePIEBALDconsult19-Nov-10 10:39 
Questionprobel with restore database - sql server Pin
Gali197818-Nov-10 20:39
Gali197818-Nov-10 20:39 

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.