I am using subsonic, I’m reasonably new at it.
Today is the first time I need to use stored procedures with it.
My provider line in the webconfig is as follows:
I am using two providers pointing at two different databases, where the other one isn’t calling the SPs.
When I generate, I am getting all the tables and the class storedprocedures’s but it is empty!
So when I do SPs. … in code there are no classes to display.
Does anyone know what’s happening here?
UPDATE:
If I set UseSps=”True” on my other provider.. it does work?
The databases are on completely different servers..
Bex
Right- for anyone who’s got this problem..
I know what’s causing it (in my case anyway).. will need a core code rewrite to fix..
If you go here it shows the source for generating the Sps.
Go to line 1745
If I run this procedure in SQL Server I get this error:
Its because the stored procedures in the DB I am using are absolutely massive, so they are too long for the row when it orders by.
Removing the order by in the core code will fix that error, but I don’t know if it’s needed??
I am going to submit it as an issue.