Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible to Determine Total Disk Space and Available
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00960999
Message ID:
00961198
Views:
7
This message has been marked as the solution to the initial question of the thread.
Use textmerge to substitue the name of database
TEXT TO lcCmd TEXTMERGE NOSHOW PRETEXT 7
USE tempdb
exec sp_helpFile
USE <<gcDataDB>>
exec sp_helpFile
ENDTEXT	
>
>The links helped, I'm now trying to include information about the TEMPDB file, and I can get the information with sp_help by first switching to the tempdb, but I can't switch back after getting the data. My database name (varies by how it was established on site) is stored in a global variable, but I get an error when trying the following:
>
>
>TEXT TO lcCmd noShow
>USE tempdb
>exec sp_helpFile
>USE ?gcDataDB
>ENDTEXT
>IF SQLEXEC(gnConnHandle,lcCmd,"Cur1")<1
>   =sqlerror()
>ELSE
>  * format data code here
>ENDIF
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform