Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StoredProcedures.cs not being generated as Sps are too big. #14

Open
BexAnn opened this issue Jul 15, 2010 · 0 comments
Open

StoredProcedures.cs not being generated as Sps are too big. #14

BexAnn opened this issue Jul 15, 2010 · 0 comments

Comments

@BexAnn
Copy link

BexAnn commented Jul 15, 2010

I have a very large legacy database I am using and I wanted to use subsonic against the stored procedures.
Everytime I generated, my StoredProcedures.cs remained empty.
A colleague of mine has come across this problem before and found it is because the stored procedures are too big.

If you go to this page of the souce
http://github.com/subsonic/SubSonic-2.0/blob/master/SubSonic/DataProviders/SqlDataProvider.cs

and line 1745, if I run this query in my database I get the following error:

Msg 1540, Level 16, State 1, Line 1
Cannot sort a row of size 8098, which is greater than the allowable maximum of 8094.

If I remove the orderby from the statement it works.
Is it possible to remove the orderby or is this needed?
Or is there another way round it?

Bex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant