I got some path while working on a project but not able to figure out the kind of it. What is this and how can I access it. if you know please share...
const string WmiNamespace_2005 = @"\\.\root\Microsoft\SqlServer\ReportServer\v9\Admin";
const string WmiRSClass_2005 = @"\\.\root\Microsoft\SqlServer\ReportServer\v9\Admin:MSReportServer_ConfigurationSetting";
const string WmiNamespace_2008 = @"\\.\root\Microsoft\SqlServer\ReportServer\{0}\v10\Admin";
const string WmiRSClass_2008 = @"\\.\root\Microsoft\SqlServer\ReportServer\{0}\v10\Admin:MSReportServer_ConfigurationSetting";
const string WmiNamespaceToUse = "root\\Microsoft\\SqlServer\\ReportServer";
It is used for finding out the installed instances of SQL Server, but I am confused in these paths only..
This is a WMI Object Path .
Conceptually similar to a Uniform Resource Locator (URL), a WMI object path is a string that uniquely identifies the namespace on a server, a class within a namespace, or instances of a class. An object path is hierarchical, and contains several elements that describe the location of the object in question. Like file paths, WMI object paths can be described in full or specified as a relative path
EDIT: WMI Object Path Requirements
An object path can use the following syntax:
In addition, an object path string must obey the following restrictions:
These are Windows Management Instrumentation paths. WMI provides a general API for management (in this case SQL Server). You address the management objects by namespaces that are similar to file system paths except they don't point to files but to management objects that can be queried and used to control whatever they are managing.
Have a look on this MSDN pages..
http://msdn.microsoft.com/en-us/library/aa390350(v=VS.85).aspx
These are used to access WMI information...
Some general links about WMI:
Specific MSDN links about WMI SQL Server:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.