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

Database

 
AnswerRe: How do I automatically backup my sql server 2005 express database on another server? Pin
Johan Hakkesteegt24-Sep-09 5:56
Johan Hakkesteegt24-Sep-09 5:56 
QuestionHow to Optimize MySql Database? Pin
Paramhans Dubey23-Sep-09 21:40
professionalParamhans Dubey23-Sep-09 21:40 
AnswerRe: How to Optimize MySql Database? Pin
Ashfield24-Sep-09 1:26
Ashfield24-Sep-09 1:26 
GeneralRe: How to Optimize MySql Database? Pin
Paramhans Dubey24-Sep-09 2:15
professionalParamhans Dubey24-Sep-09 2:15 
AnswerRe: How to Optimize MySql Database? Pin
Dave290924-Sep-09 12:45
Dave290924-Sep-09 12:45 
QuestionNesting a stored proc call in a where clause? Pin
Dave290923-Sep-09 14:23
Dave290923-Sep-09 14:23 
AnswerRe: Nesting a stored proc call in a where clause? Pin
Dave290923-Sep-09 14:54
Dave290923-Sep-09 14:54 
AnswerRe: Nesting a stored proc call in a where clause? Pin
Ashfield23-Sep-09 21:16
Ashfield23-Sep-09 21:16 
Dave2909 wrote:
create function callme()
returns TABLE AS
RETURN(exec MyExistingSP)


You can't do this -
1. You can't call a proc from a function
2. You can't pipe the output from a proc into a table

Regarding only getting the first few rows, try

SET ROWCOUNT 10
exec sproc
SET ROWCOUNT 0


This will just return the 1st 10 rows.

As for the rest of it, the only way to do it would be some pretty complex dynamic sql.

Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP

QuestionRe: Nesting a stored proc call in a where clause? Pin
Dave290924-Sep-09 12:37
Dave290924-Sep-09 12:37 
GeneralSQL AZURE Service Pin
abhigad23-Sep-09 13:38
abhigad23-Sep-09 13:38 
QuestionHow we can handle mails if exchange server is down Pin
Anuj Banka23-Sep-09 0:31
Anuj Banka23-Sep-09 0:31 
AnswerRe: How we can handle mails if exchange server is down Pin
Johan Hakkesteegt23-Sep-09 0:49
Johan Hakkesteegt23-Sep-09 0:49 
GeneralRe: How we can handle mails if exchange server is down Pin
Anuj Banka23-Sep-09 1:31
Anuj Banka23-Sep-09 1:31 
GeneralRe: How we can handle mails if exchange server is down Pin
Johan Hakkesteegt23-Sep-09 2:23
Johan Hakkesteegt23-Sep-09 2:23 
GeneralRe: How we can handle mails if exchange server is down Pin
Anuj Banka23-Sep-09 2:48
Anuj Banka23-Sep-09 2:48 
GeneralRe: How we can handle mails if exchange server is down Pin
Johan Hakkesteegt23-Sep-09 2:49
Johan Hakkesteegt23-Sep-09 2:49 
GeneralRe: How we can handle mails if exchange server is down Pin
Anuj Banka23-Sep-09 17:53
Anuj Banka23-Sep-09 17:53 
QuestionQuery Problem Pin
Syed Shahid Hussain22-Sep-09 23:48
Syed Shahid Hussain22-Sep-09 23:48 
AnswerRe: Query Problem Pin
Eddy Vluggen23-Sep-09 0:11
professionalEddy Vluggen23-Sep-09 0:11 
GeneralRe: Query Problem Pin
Syed Shahid Hussain23-Sep-09 0:49
Syed Shahid Hussain23-Sep-09 0:49 
GeneralRe: Query Problem Pin
Eddy Vluggen23-Sep-09 1:40
professionalEddy Vluggen23-Sep-09 1:40 
GeneralRe: Query Problem Pin
Syed Shahid Hussain23-Sep-09 3:40
Syed Shahid Hussain23-Sep-09 3:40 
GeneralRe: Query Problem Pin
Eddy Vluggen23-Sep-09 6:18
professionalEddy Vluggen23-Sep-09 6:18 
AnswerRe: Query Problem Pin
Dave290924-Sep-09 12:55
Dave290924-Sep-09 12:55 
QuestionHow to Install MySql in silent mode with Setup Application Pin
Paramhans Dubey22-Sep-09 18:55
professionalParamhans Dubey22-Sep-09 18:55 

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.