Link to home
Start Free TrialLog in
Avatar of ccleebelt
ccleebeltFlag for United States of America

asked on

Request for Procedure failed, X is a table object

We've got a few old customers that, believe it or not, still have old classic ASP sites.   We recently began to migrate them from SQL 2012 to Azure SQL Database.  After the database migration, we get the following errors on the sites:

Server Native Client 11.0][SQL Server]The request for procedure '[tablename]' failed because '[tablename]' is a table object.

I figure at this point there has to be a fix for this however I cannot seem to locate it.

Anyone have the magic bullet?
Avatar of Big Monty
Big Monty
Flag of United States of America image

i would check the permissions on the table(s) and make sure the user account being used in the app has access to it.

if that doesn't resolve the issue, seeing some offending code may help.
Avatar of ccleebelt

ASKER

Well, here's the most bassackwards solution, but it worked.  We had some legacy ASP code that was looking for datatype TEXT. Varchar(MAX) blew it  up.

We changed the column datatype back to TEXT and it worked.  Welcome to 2002.

Now, TEXT is supposed to be deprecated but apparently Azure SQL Database is supporting it now.

Go figure.
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yeah, probably a better solution assuming that would work with ASCII vs. UNICODE. For now, this worked, so we wont touch it again until it blows up.