Closed nickpreston24 closed 7 months ago
Ok, so.... running
SELECT name as procedure_name FROM sys.objects
Instead of
SELECT * FROM sys.objects
makes it work.
Why? Idk. But I'm using it for now.
Thanks for reading.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I added this test case for .net8/Microsoft.Data.SqlClient. Seems to be working:
[Test]
public void TestSysProcs()
{
// Issue #498
var results = Connection().QuerySql<SprocMetadata>("SELECT * FROM sys.objects");
ClassicAssert.Greater(results.Count, 0);
}
Please reopen if v8 doesn't fix it.
'Internal connection fatal error' when calling
sys.*
queries.When trying to run QueryAsync or any repo stored procedure, I get an exception that says:
Steps to reproduce
Expected behavior
The standard
sys.object
columns and row to be returned.This also happens with
sys.parameters
,sys.comments
,sql_expression_dependencies
and perhaps a few others. Even stuffing this code in a stored procedure doesn't solve the issue.On the other hand,
sys.sql_modules
works just fine! Can't imagine why only a couple ofsys.*
work while most do not.