December 24, 2004 at 12:10 am
How to use store procedure to get information about server, like chipset number, I/O, and memory.
December 24, 2004 at 2:11 am
I don't know if this is what you want.
Keep in mind this is using xp_cmdshell !! (you don't want to open it for everyone !)
declare @DosCmd varchar(500)
Declare @filename varchar(500)
set @filename = 'c:\MyMsinfo32Result.txt'
Set @DosCmd = 'c:\winnt\system32\dllcache\msinfo32.exe /report ' + @filename
exec master..xp_cmdshell @DosCmd
SET nocount ON
CREATE TABLE #tmp_msinfo32 (line varchar(8000))
EXEC ('bulk INSERT #tmp_msinfo32 FROM "' + @filename + '"')
SELECT * FROM #tmp_msinfo32
DROP TABLE #tmp_msinfo32
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply