db size

  • Hi,

    I wanna remote query script(means that query will be executing on multiple servers) which will give database name and database size for all databases..

    So that i can pull the data from multiple servers using that script.

    any suggesions will be greatly appreciated.

    Thanks

    Rekha

  • I suggest you to start using Powershell.

    __________________________
    Allzu viel ist ungesund...

  • But at this time i wanna t-sql script

  • You can take help of linked server.

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • Hi Bhuvnesh,

    Thaks for reply

    yes i have to create an linked server for pull the data from multilple servers .i too thought like that .let me try once

    Thanks

    rekha

  • Hi Rekha

    you can try with linked servers it's possible .

  • have a look at a central management server,

    under registered servers --> database engine --> central management servers

    add in your central server, then register any child servers under the central server

    then you can execute a query against the central server which will execute against all the registered servers in one t-sql statement

  • anthony.green (7/22/2011)


    have a look at a central management server,

    under registered servers --> database engine --> central management servers

    add in your central server, then register any child servers under the central server

    then you can execute a query against the central server which will execute against all the registered servers in one t-sql statement

    not available in Sql 2005 but its a sql 2008 feature. and only can be used in same domain

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • not available in Sql 2005 but its a sql 2008 feature. and only can be used in same domain

    sorry my mistake, I went into the forums via the daily subscription, where as I usually go in via the web, so appologies.

    if you have a development 2008 server you can use this as the CMS and register 2005 servers that way

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply