Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 296843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:35:08+00:00 2026-05-12T06:35:08+00:00

I am attempting to connect to an Access 2000 database file (*.mdb), but I

  • 0

I am attempting to connect to an Access 2000 database file (*.mdb), but I am having just a tad few issues. Here is the screenplay thus far,

1) Googled how to connect to a database using powershell which resulted in the following as a source code baseline.

$adOpenStatic = 3
$adLockOptimistic = 3

$objConnection = New-Object -comobject ADODB.Connection
$objRecordset = New-Object -comobject ADODB.Recordset

$objConnection.Open("Provider = Microsoft.Jet.OLEDB.4.0; Data Source = c:\scripts\sample.mdb")
$objRecordset.Open("Select * from TotalSales", $objConnection,$adOpenStatic,$adLockOptimistic)

$objRecordset.MoveFirst()

do 
{ $objRecordset.Fields.Item("EmployeeName").Value; $objRecordset.MoveNext() } 
until ($objRecordset.EOF -eq $True)

$objRecordset.Close()
$objConnection.Close()

2) I substituted the Data Source for the fully qualified path of my database then was presented with the following.

Exception calling "Open" with "5" argument(s): "Record(s) cannot be read; no read permission on 'RqRequirements'."
At :line:23 char:18
+ $objRecordset.Open <<<< ("Select * from RqRequirements", $objConnectionCsdscDB,$adOpenStatic,$adLockOptimistic) 

3) Since this is a Rational RequisitePro database I almost never need to edit the database directly, but come to find out if we need to edit the database direct we need to issue the following command as a link on the Windows Desktop:

"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /wrkgrp C:\Program Files\Rational\RequisitePro\bin\rqprodb.mda" /user "xxxxxxx" /pwd "yyyyy"

4) Taking the script listed above and changing it slightly I have the following:

$adOpenStatic     = 3
$adLockOptimistic = 3

$objConnectionRqProDB = New-Object -comobject ADODB.Connection
$objConnectionCsdscDB = New-Object -comobject ADODB.Connection
$objRecordset         = New-Object -comobject ADODB.Recordset

$cnnStringRqProDB = "Provider = Microsoft.Jet.OLEDB.4.0;" + 
                    "Data Source = C:\\Program Files\\Rational\\RequisitePro\\bin\\rqprodb.mda;" +
                    "UID=requisite admin;" +
                    "PWD=multiuser"

$cnnStringCsdscDB = "Provider = Microsoft.Jet.OLEDB.4.0;" + 
                    "Data Source = J:\\TestPowerShell\\Rational.MDB"

$objConnectionRqProDB.Connectionstring = $cnnStringRqProDB
$objConnectionRqProDB.Open()

$objConnectionCsdscDB.Connectionstring = $cnnStringCsdscDB
$objConnectionCsdscDB.Open()

$objRecordset.Open("Select * from RqRequirements", $objConnectionCsdscDB,$adOpenStatic,$adLockOptimistic)

$objRecordset.Close()
$objConnection.Close() 

5) When I run this script I get the following error:

Exception calling "Open" with "4" argument(s): "Could not find installable ISAM."
At :line:17 char:26
+ $objConnectionRqProDB.Open <<<< ()

6) I did some searching and found the following link, http://support.microsoft.com/kb/209805, and I checked the registry and the entry is present for

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Paradox
win32=C:\WINDOWS\system32\mspbde40.dll

this file is located in %SYSTEM32%\

Note, I do not have Access installed on my system (could this be an underlying problem? I am not sure, but I wouldn’t think so since I am using the ADO)

Questions:

1) How do I include the “/wrkgrp” option in the connection string in the script?

2) Assuming the lack of the “/wrkgrp” option in the connection string is not my problem what might be issue?

3) Does Access need to be installed on the system in order for this to work?

Thanks, Mark

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:35:08+00:00Added an answer on May 12, 2026 at 6:35 am

    You shouldn’t need Access installed.

    You are trying to open the workgroup database (mdw) separately – don’t do that.

    You need to specify the workgroup database in the connect string

    Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mydatabase.mdb;
    Jet OLEDB:System Database=system.mdw;User ID=myUsername;Password=myPassword;
    

    So in your case, use the following:

    $cnnStringRqProDB = "Provider = Microsoft.Jet.OLEDB.4.0;" + 
                        "Data Source = J:\\TestPowerShell\\Rational.MDB;" +
                        "Jet OLEDB:System Database = C:\\Program Files\\Rational\\RequisitePro\\bin\\rqprodb.mda;" +
                        "User ID=requisite admin;" +
                        "Password=multiuser"
    
    $objConnectionCsdscDB.Connectionstring = $cnnStringCsdscDB
    $objConnectionCsdscDB.Open()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting connect my Sequel Pro database to R. In Joseph Adler's R in
I'm attempting to connect to an Asterisk manager interface, and I'm having a problem
I'm attempting to take Excel 2003 and connect it to SQL Server 2000 to
I am having a few issues with sockets within my Java SIP client. When
Using Java, I get this error when attempting to connect to a mysql database:
I'm attempting to implement the latest Facebook Connect SDK and I'm having some troubles.
I'm attempting to upload a file asynchronously using HTTP POST and jQuery, but I'm
Microsoft Access 2003 database (.mdb) containing a linked table which connects via ODBC to
I am attempting to use pynotify for a small project, but am having a
I'm attemping to use this code to call a php file, access the database,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.