ODBC error 3146, SQL Server error 146

ODBC error 3146, SQL Server error 146

Post by Frank Wes » Tue, 11 Aug 1998 04:00:00



Programming with:
*  vb 5.0
*  ODBC 3.5 using ODBCDIrect with the Database object
*  SQL Server 6.5

I attempt to execute the following statement and receive the ODBC error
3146 - ODBC call failed.

delete * from pattable where oid = '005' and end_ >= '12/01/96' and end_ <=
'08/07/98'

Upon examing the returned error closer -- I was able to determine that the
server error being returned is system message 146 - "Unable to allocate
ancillary table for a subquery. Maximum number of tables in a query (%d)
exceeded."

What causes this error and what do I need to do to get around it?  I am
using only one table for this query.  The query is performed using the
.Execute method with no explicit option setting.  I have full rights to this
table as the UID in the initial connection string is set as the database
owner.  Any help is very much appreciated.

Frank West

 
 
 

1. ODBC error 3146, SQL Server error 146

Programming with:
*  vb 5.0
*  ODBC 3.5 using ODBCDIrect with the Database object
*  SQL Server 6.5

I attempt to execute the following statement and receive the ODBC error
3146 - ODBC call failed.

delete * from pattable where oid = '005' and end_ >= '12/01/96' and end_ <=
'08/07/98'

Upon examing the returned error closer -- I was able to determine that the
server error being returned is system message 146 - "Unable to allocate
ancillary table for a subquery. Maximum number of tables in a query (%d)
exceeded."

What causes this error and what do I need to do to get around it?  I am
using only one table for this query.  The query is performed using the
.Execute method with no explicit option setting.  I have full rights to this
table as the UID in the initial connection string is set as the database
owner.  Any help is very much appreciated.

Frank West

2. How to capture ODBC errors

3. Need help deciphering extended ODBC error returned from VB error 3146

4. Help: Confused with Primary Key and Index

5. Error 3146 when opening non empty, ODBC-linked SQL 7 table

6. Can not run module in Access95

7. Foxpro 3.0 data file compatibility

8. Actual ODBC error codes rather than 3146 -- ODBC Call failed

9. Error 3146: ODBC-call failed with ODBC-direct

10. sql server 6.5 errors 3146, 3027

11. Error 3146 when trying to update dynaset with SQL server back-end

12. ODBC error 3146 suddenly happening