Newb: Managing multiple queries
am 06.12.2007 19:38:06 von Akhenaten
I am currently using enterprise manager to run multiple queries on a
single table in a DB. I refresh these queries every few minutes. Due
to the huge number of them I was looking for a better way (or should I
just say "a way") to manage/save these queries so I can recall them
easier/faster for monitoring purposes. Suggestions?
TIA.
Re: Newb: Managing multiple queries
am 07.12.2007 05:44:54 von Tom van Stiphout
On Thu, 6 Dec 2007 10:38:06 -0800 (PST), Akhenaten
wrote:
If I understand you correctly you need an application (Access ADP, or
..NET) to call your queries based on a timer or a button click. SQL
Server tools alone are probably not going to do the trick.
-Tom.
>I am currently using enterprise manager to run multiple queries on a
>single table in a DB. I refresh these queries every few minutes. Due
>to the huge number of them I was looking for a better way (or should I
>just say "a way") to manage/save these queries so I can recall them
>easier/faster for monitoring purposes. Suggestions?
>
>TIA.
Re: Managing multiple queries
am 07.12.2007 05:45:39 von Plamen Ratchev
Hi,
Maybe creating a stored procedure (or more, if the queries are logically
grouped) will help you. Then you would need just to execute the stored
procedures in Query Analyzer (which is the tool intended to run queries
anyway). Alternatively you can save the queries to a script file, and then
open and run in Query Analyzer.
HTH,
Plamen Ratchev
http://www.SQLStudio.com