Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Possible to Determine Total Disk Space and Available
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00960999
Message ID:
00961198
Vues:
6
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform