anyone knows how to do a pagination in stored proc...
# cfml-beginners
g
anyone knows how to do a pagination in stored procedure, i am working on datatables and had to use stored proc but never used pagination there
m
what database are you using? If I"m understanding correctly, couldn't you pass the offset/fetch as arguments of the SP, and and then use them in the SP just like any other query?
g
Mssql
Hmm Let me try that if it works But my concern here is I want those to be conditional because same stored procedure will be used for other purpose where this is not a requirement
m
you can likely set default fetch/offset values that will pull everything.