---
title: "Error -2147217865 'GetCommandRecordSet'"
canonical: "https://servicedesk.maxgeo.com/space/MAXGEO/1066762263/Error%20-2147217865%20'GetCommandRecordSet'"
format: markdown
---
**Problem:**

 

When using QAQCR for the first time since creating a new .ini file, the user goes to Load Batches, and this error occurs:

QAQCR Version : 1.10.2

Module : clsDatabase   
Function : GetCommandRecordset   
Error Number : -2147217865   
Error Source : Microsoft OLE DB Provider for ODBC Drivers   
Description :   
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'TBLDHASSAY'

Once they click 'Close' the following error occurs:

Module : Mainform  
Function : LoadBatches  
Error Number : 91  
Description :   
Object variable or With block variable not set

**Clarification:**

This occurs after the creation of a new .ini file for users with databases on SQL.

**Solution:**

The user has created their new .ini file based on QAQCR_Sample.ini which is for Access databases which have 6 assay tables. The solution is to delete that .ini file from C:/Program Files / QAQCR and recreate it, this time basing it on QAQCR_SQL.ini file.