November 26, 2008 at 10:35 pm
November 27, 2008 at 4:03 am
Paresh Prajapati (11/26/2008)
Is there any SQL scripts to find out system/os info..like disk/Drive space info
I think you should be more specific what you're looking for. There are lots of scripts available to get all kind of information. If you're looking for freediskspace use xp_fixeddrives.
[font="Verdana"]Markus Bohse[/font]
November 28, 2008 at 6:20 am
If you're looking for OS level configuration information (e.g. what services are running, how many processors, etc.) try this:
Network documentation with SQL 2005 and SYDI
Part of what I suggest requires running a VBScript that uses WMI to gather information and bulk insert into SQL, but once it's in SQL you can use XQuery to find out quite a bit about your server.
November 28, 2008 at 8:05 am
-- This will display Drive Space.
CREATE TABLE #FixedDrives
(DriveLetter VARCHAR(10),
MB_Free DEC(20,2)
)
INSERT INTO #FixedDrives EXEC Master..XP_FixedDrives
SELECT * FROM #FixedDrives
DROP TABLE #FixedDrives
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply