How do I get the result back from this MSSQL "query":
Exec master.dbo.xp_fixeddrives()
FileName{Prop:SQL} = 'Exec master.dbo.xp_fixeddrives()'
Loop
Next(FileName)
...
...
Doesn't give a result!!!
How do I get the result back from this MSSQL "query":
Exec master.dbo.xp_fixeddrives()
FileName{Prop:SQL} = 'Exec master.dbo.xp_fixeddrives()'
Loop
Next(FileName)
...
...
Doesn't give a result!!!
Hi Alex,
donât use Prop:SQL. Instead use Prop:SQLRowSet. If you want to use Prop:SQL you must change your syntax to âcall master.dbo.xp_fixeddrives()â
I assume master.dbo.xp_fixeddrives() is a stored procedure that returns a dataset? In which case
'CALL master.dbo.xp_fixeddrives()â
is what you want, and your âfilenameâ clarion table needs to have columns that match the data set that the procedure returns (i.e. if the first column from the procedure is a string, donât try to put it in a clarion short or long.
Found the solution:
SQLDiskFree{PROP:SQLRowSet} = âmaster.dbo.xp_fixeddrivesâ
Loop
Next(SQLDiskFree)
If ErrorCode() Then Break.
âŚ
âŚ