Possible to access WMI through ADO? - wmi

Is there an OLEDB provider for WMI/WBEM?
In other words, could someone access WMI through:
ADO in shell vbscript
ADO in ASP script
ADO in Win32 native process
SQL Server linked server
SQL Server OPENROWSET()
Is there an OLEDB provider for WMI/WBEM?
Is it possible to access WMI through ADO?
i hear rumors that an ODBC driver exists for WMI, but i cannot see it installed on my machine. Plus, i'm asking about OLEDB (and ADO that wraps it).

The answer is: No
There used to be an ODBC WMI adapter for Windows 2000 Server as an optional installation. (see here). It is not supported on later Windows versions (see here).

It would be too much work to wrap every class in WMI to OLDEB tables. Number of WMI classes exploded in the XP/2003 timeframe. If you are only focusing on certain classes, you can write your own OLEDB provider that calls WMI and returns the data.

Related

Configure OLEDB Data Source in Coldfusion

I need to access a 3rd Party software database using their propriety OLEDB connector. I've installed their OLEDB software and can confirm using Regedit.
When trying to create a Data Source in the Coldfusion Administrator, I found that the OLEDB data sources have been deprecated since coldfusion MX.
On searching further, I haven't been able to find any alternative way of configuring the data source.
Can you please advise how can I access the OLEDB data source?
Any links or direction would be really appreciated.
I believe you will have to use the 'Other' option value in the datasource driver dropdown. and then provide repective info in the following page. They say that all the OLEDB drivers that might exist will not be listed in the drop down and hence you will have to o the manual way of things.
Further details here" http://www.rvclandtrust.org/CFDOCS/Advanced_ColdFusion_Administration/datasources_ADV_MJS2.html

Connect to ms-access via odb-orm

I am fairly new to this library, and ORM in general but I have the following question:
Is it possible to connect to a table inside a Microsoft .mdb or .accdb local database via odb-orm (code synthesis)?
According to their website, it doesn't support MS Access.

MSSQL c++ connector

I am looking for a way to connect to a MS SQL database from a unmanaged C++ program.
The only thing that I found is http://www.sqlapi.com/, but this is payed, any idea of a free alternative?
Also I would like a solution that has both a Linux and Windows connector.
How about standart API: ODBC?
You may see a good example of connector in this link:
http://cs.dvc.edu/HowTo_SQL.html
But there are a string:
char db[] = "myDatabase"; // ODBC database name
It isn't a database name, it's name of server. For example: MSSQLSERVER.

Connecting to oracle database using C++, the basics

i have a question about the theory here, i'm just starting a project which is based on C++ applications integrating with oracle DB's, i've came to two choices, OCCI, and OCI
the OCCI is said to be aimed at C++ environment, but i was wondering, if it would be any good to use the OCI libraries from my C++ app since it is said to have better performance, or would i run into compatibility issues ?
thanks in advance :)
You can have a look at OTL it's a wrapper above the OCI or OCCI (not sure) will give some templates and samples to start with oracle connection in c++.
In my case, my company have about a thousand stores.
To connect Oracle / Oracle thru an MS C++ multi-thread service we perform the following tests on each thread:
Validate DNS (gethostbyname)
Try to open SCManager of the store (OpenSCManager)
Verify if Oracle Service exists on the store (OpenService)
Verify if Oracle Service is running (QueryServiceStatus)
After all, we try to connect (ado->Open)
This procedures minimize possible errors like 0xE06D7363 when connecting to a external server.

Connecting and Fetching a record form sequel server 2005

I have a windows application in visual C++. I am not using MFC, in this application I have connect to SQL server 2005 and fetch records form a database file. Can any one guide me how this can done. Thanks in advance.
I would say, you could use some wrapper framework around the odbc calls. Currently I was working on a project where SQL server communication was involved so I found this wrapper framework: TinyODBC which is a minimalistic ODBC wrapper library. It's pretty trivial how can one use it, but I have to admit I had to patch it for a little more functionality. But otherwise it is a useful choice of ODBC communication. Now, you can use the native SQL driver via ODBC. Since it's a minimal framework, if you go through the tutorial you'll be ready to create new application with it.
Now
The complete list of accessing methods is listed here. Most popular choices for C++ programmers are SQL Server Native Client and MDAC/Windows DAC, both support OLEDB and ODBC interfaces. A comparison of SQL Server Native Client and MDAC/WIndows DAC is here.
There are other wrappers built on top of OLEDB and ODBC such as ADO or TynyODBC, which can help you to write more readable code.