开发者

StoredProcedures ... "The Request Properties cannot be supported"

开发者 https://www.devze.com 2023-01-13 22:11 出处:网络
I have a problem with SQL Server 2005 and classic asp and recordsets. Whenever I modify a Table, it seems to affect all the stored procedures dependent on that table and when I call the (select) spro

I have a problem with SQL Server 2005 and classic asp and recordsets.

Whenever I modify a Table, it seems to affect all the stored procedures dependent on that table and when I call the (select) sproc, the error is:

"The Request Properties cannot be supported"

But when I run the sproc in query analyzer window, there are no problems. And when I call the开发者_JAVA技巧 sproc via ado.net, no problems there too.

But when I open Management Studio as an admin, and alter the sprocs 1 by 1, and hit execute to alter them, everything starts working again.

Please help.

Thanks


Can't say for sure why it's happening, but rather than altering the sprocs 1 by 1, you could try an sp_recompile with the name of the table you've modified. This will flag all stored procedures and triggers that reference your table to recompile the next time they're run.

exec sp_recompile N'YourSchema.YourTable';
0

精彩评论

暂无评论...
验证码 换一张
取 消