Modify object variable

  • Hi,

    I use a WMI data reader task to execute the following query

    “Select DeviceID , freeSpace, size from Win32_LogicalDisk where freeSpace is not null”. The result is placed in a variable of type object. I now need to add the server name to the output produced. I tried to do “select ‘servername’, deviceid,..”,but that does not work. Is there any way to add it to the object variable?

  • ...Use SERVERPROPERTY('ServerName')

    If you've multiple instances, you might want to use SERVERPROPERTY('InstanceName')

    --Ramesh


  • The problem I have is not getting the server name, it is adding the name of the server to an existing dataset, which in this case was the object variable returned by the WMI task.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply