QL0012 Stored Procedure Not Found
A stored procedure referenced by a SqlStoredProc statement does not exist in the loaded schema snapshot.
When It Appears
- Level 3 validation is active and the procedure name cannot be found
- The snapshot may come from a different environment than the one the SQL targets
Example
var proc = new SqlStoredProc("EXEC dbo.usp_mispeled_proc @Id = @Id");
Assert.Contains(proc.Errors, issue => issue.Code == "QL0012");
Next Steps
- Confirm the schema snapshot includes the expected procedure
- Correct the procedure name or reload from the intended database