January 2008
Intermediate to advanced
688 pages
19h 12m
English
Several providers can be used when opening a connection to a database or some other data source. These are listed in Table B-1. This list is not complete or comprehensive. This is because many third-party software companies develop their own providers.
Each of these provider names can be used when opening a connection to a data source. The code to this looks like the following:
$strDB = "c:\fso\configurationmaintenance.mdb"
$objConnection = New-Object -ComObject ADODB.Connection
$objConnection.Open("Provider = Microsoft.Jet.OLEDB.4.0; `
Data Source= $strDB")An example of a script that uses Microsoft ActiveX Data Objects (ADO) to talk to a Microsoft Access database is the AuditScreenSaverWriteToAccess.ps1 ...
Read now
Unlock full access