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

Database

 
QuestionHow do I automatically backup my sql server 2005 express database on another server? Pin
Nada Adel24-Sep-09 2:15
Nada Adel24-Sep-09 2:15 
AnswerRe: How do I automatically backup my sql server 2005 express database on another server? Pin
Abhishek Sur24-Sep-09 3:33
professionalAbhishek Sur24-Sep-09 3:33 
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 
Here's the short question - how can I make this work?

create function callme()
returns TABLE AS
RETURN(exec MyExistingSP)

And the longer question on why I'd want it to...

* I've got several stored procs that return table result sets that are fairly large (or larger than I care to scroll through)
* Often, I'm doing ad-hoc queries where I only want to see one or two rows returned by the stored proc.
* If I need to whip up a function/stored proc to allow this, it would be handy if it would take the stored proc name as a parameter
* Would also be nice to take a subset of the column list in a select, or add an order by
* I'm most interested in SQL Server 2000+
* Performance is not an issue (within some reason...), as this is only for typed in ad-hoc queries

select column1, column2
from callme('MySP')
where id > 500
order by LastModified --> would be nice to see the subset...

I can do this easily with a multiline function for each stored proc, but it's not worth that much work. I keep hoping there's just a twist of syntax I'm missing, but I'm afraid that's not the case...

Any thoughts?

Thanks,

Dave
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 
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 

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.