Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The request for procedure 'tblMyTable' failed because 'tblMyTable' is a table object

I have an excel workbook that uploads data into a sql database. The code has been working fine for the past year.

However today I am seeing the error message below. As far as I can tell nothing has changed.

The request for procedure 'tblMyTable' failed because 'tblMyTable' is a table object 

The second line below is where the error occurs.

Dim rs As New ADODB.Recordset
rs.Open "tblMyTable", pCn, adOpenKeyset, adLockOptimistic

Why is this no longer working?

like image 378
mHelpMe Avatar asked Sep 07 '25 08:09

mHelpMe


1 Answers

Check to make sure the stored procedure still exists. Then also check to make sure a table wasn't created with the same name as your stored procedure. Common practice would be to name the stored procedure as "procMyTable." Hope this helps someone else

like image 187
GuestJAY Avatar answered Sep 11 '25 12:09

GuestJAY