Hi guys,
retrieving data from some servers I try to use the next syntax
SELECT * FROM OPENQUERY( [linked server],'SET FMTONLY OFF; EXEC (''DBCC showfilestats WITH NO_INFOMSGS '')')
but this retrieves the filestats from master only.
How can I use this syntax going to a specific database.
--------------
Or ;
Why does the syntaxs;
USE database
GO
EXEC ('DBCC showfilestats WITH NO_INFOMSGS ')
works fine and
USE database GO EXEC ('DBCC showfilestats WITH NO_INFOMSGS ')
does not work??
Who can help me out on this?
Regards.
Guus Kramer
The Netherlands