on 2019 Jan 29 7:18 AM
I am using a directory server which does not exist on the same drive as any of the database files. Is there any way to query the space available on the drive before inserting into a table on the drive to see if there is room?
Thanks
Jim
Request clarification before answering.
When using SQL Anywhere 17, you can use the sp_disk_info() system procedure.
On Windows, this can be used both with directories on drives identified by drive letters or UNC names. Don't know how this works on Unixes.
-- note, need do specify an existing file/dir (here the root dir) call sp_disk_info('C:\\\\.'); -- UNC (seems to expect an existing dir or file other than the root dir call sp_disk_info('\\\\\\\\ServerName\\\\Netshare\\\\AnExistingDir');
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
See this topic about using WMIC: Check free disk space using Batch commands.
User | Count |
---|---|
74 | |
20 | |
9 | |
8 | |
7 | |
5 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.