dbTalk Databases Forums  

Is there a Query Analyzer

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Is there a Query Analyzer in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
click37@gmail.com
 
Posts: n/a

Default Is there a Query Analyzer - 02-20-2007 , 04:04 PM






in the market place that will run a query on multiple DBs across
multiple servers? Without having to manually connect to each server?
If so, can anyone provide a link for it.

Thanks


Reply With Quote
  #2  
Old   
Josh Assing
 
Posts: n/a

Default Re: Is there a Query Analyzer - 02-20-2007 , 07:57 PM






"it depends"

I might be able to write you a custom program for free to do it if you give me
more details.

There's ways to send a query to an sql server via script; but it's not pretty.

Tell us more about what you need to do; or email me off the NG if you want a
mini app

-j


On 20 Feb 2007 14:04:44 -0800, click37 (AT) gmail (DOT) com wrote:

Quote:
in the market place that will run a query on multiple DBs across
multiple servers? Without having to manually connect to each server?
If so, can anyone provide a link for it.

Thanks

--- AntiSpam/harvest ---
Remove X's to send email to me.


Reply With Quote
  #3  
Old   
click37@gmail.com
 
Posts: n/a

Default Re: Is there a Query Analyzer - 02-22-2007 , 09:04 AM



Say I want to run this script:

Select * from company

I need it to run on DB1, DB2, DB3, DB4 and DB5

DB1 and DB2 are located on Server1
DB3 is on Server2
DB4 and DB5 is on Server3

The long and manual way I would have to do it, is copy the SQL smt.
Connect to Server1, paste and run it on DB1, then DB2. Connect to
Server 2, run it on DB3 and so on.

Is there a way to configure the script that will allow me to run the
query once, and it'll give me the results from all the DBs I want it
to hit ?


Thanks for helping.


On Feb 20, 8:57 pm, Josh Assing <Xjo... (AT) jAssing (DOT) com> wrote:
Quote:
"it depends"

I might be able to write you a custom program for free to do it if you give me
more details.

There'sways to send aqueryto an sql server via script; but it's not pretty.

Tell us more about what you need to do; or email me off the NG if you want a
mini app

-j

On 20 Feb 2007 14:04:44 -0800, clic... (AT) gmail (DOT) com wrote:

in the market place that will run aqueryon multiple DBs across
multiple servers? Without having to manually connect to each server?
If so, can anyone provide a link for it.

Thanks

--- AntiSpam/harvest ---
Remove X's to send email to me.



Reply With Quote
  #4  
Old   
Robert Klemme
 
Posts: n/a

Default Re: Is there a Query Analyzer - 02-24-2007 , 09:02 AM



On 22.02.2007 16:04, click37 (AT) gmail (DOT) com wrote:
Quote:
Say I want to run this script:

Select * from company

I need it to run on DB1, DB2, DB3, DB4 and DB5

DB1 and DB2 are located on Server1
DB3 is on Server2
DB4 and DB5 is on Server3

The long and manual way I would have to do it, is copy the SQL smt.
Connect to Server1, paste and run it on DB1, then DB2. Connect to
Server 2, run it on DB3 and so on.

Is there a way to configure the script that will allow me to run the
query once, and it'll give me the results from all the DBs I want it
to hit ?
Whatever you do, you will have to at least once authenticate to each
machine. With SQL 2005 Management Studio you can store credentials - or
you use Windows authentication. Then no additional login is required.

HTH

robert


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.