Reputation: 7193
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..
Upvotes: 2
Views: 207
Reputation: 7630
Have a look on this MSDN pages..
http://msdn.microsoft.com/en-us/library/aa390350(v=VS.85).aspx
Upvotes: 1
Reputation: 70379
These are used to access WMI information...
Some general links about WMI:
Specific MSDN links about WMI SQL Server:
Upvotes: 0
Reputation: 62544
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:
Upvotes: 3
Reputation: 106906
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.
Upvotes: 1