Showing posts with label available. Show all posts
Showing posts with label available. Show all posts

Wednesday, March 7, 2012

How to find Free disk space available from SQL query

Hi all,
I have to find free disc space in a drive from SQL Query and i am using MSSQL200. Does any body know the command for the same.

Also if i want to find hard disk space of a different machine on network, it is possible to get the data??

Also can i get the CPU/Memory usage data of our machine by some SQL/C++ commands??

Please let me know if u know any of the answer...

thanks
Alokxp_fixeddrives for free disk space...looking for others...

Sunday, February 19, 2012

How to find all sql servers in a domain

Hi,
Is there a way to find all available SQL Servers in a particular domain or
subnet?
Thanks.
- Rob.At the DOS prompt enter "OSQL -L" The -L option show all the servers that
are broadcasting on the network.
"Rob" wrote:
> Hi,
> Is there a way to find all available SQL Servers in a particular domain or
> subnet?
> Thanks.
> - Rob.|||ISQL /L from a machine that has the client tools installed or use SQL DMO.
Just be aware that within the server network utility you have the ability to
hide the server so this may not be conclusive.
"Greg Larsen" wrote:
> At the DOS prompt enter "OSQL -L" The -L option show all the servers that
> are broadcasting on the network.
> "Rob" wrote:
> > Hi,
> >
> > Is there a way to find all available SQL Servers in a particular domain or
> > subnet?
> >
> > Thanks.
> >
> > - Rob.|||osql /L will most likely not give you all the SQL servers in a domain unless
you have a tiny domain that has nothing routed and every machine is
broadcasting--an unlikely scenario.
The only reliable way I've found is to enumerate all the machines in a
domain and systematically test each machine for the presence of SQL server
instances.
Linchi
"Greg Larsen" wrote:
> At the DOS prompt enter "OSQL -L" The -L option show all the servers that
> are broadcasting on the network.
> "Rob" wrote:
> > Hi,
> >
> > Is there a way to find all available SQL Servers in a particular domain or
> > subnet?
> >
> > Thanks.
> >
> > - Rob.|||You can query the registry on your severs to get a definative answer the path
is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
This will list all instances installed on your server.
Ray
"Linchi Shea" wrote:
> osql /L will most likely not give you all the SQL servers in a domain unless
> you have a tiny domain that has nothing routed and every machine is
> broadcasting--an unlikely scenario.
> The only reliable way I've found is to enumerate all the machines in a
> domain and systematically test each machine for the presence of SQL server
> instances.
> Linchi
> "Greg Larsen" wrote:
> > At the DOS prompt enter "OSQL -L" The -L option show all the servers that
> > are broadcasting on the network.
> >
> > "Rob" wrote:
> >
> > > Hi,
> > >
> > > Is there a way to find all available SQL Servers in a particular domain or
> > > subnet?
> > >
> > > Thanks.
> > >
> > > - Rob.