I have a SQl Query which returns 30,000+ records, with 15 columns . I am passing a NVARCHR(50) parameter for the store procedure.
At the moment I am using stored procedure to get the data from the database.
As there are 30,000+ records to be fetched and its taking time, What would be the suggestions for me.
Do I get any performance benefits if I use functions with in the stored procedure(to get individual columns based on the parameter I am passing)
Please let me know, if you need more info on the same.
Thank you
[http://stackoverflow.com/questions/1179758/function-vs-stored-procedure-in-sql-server][1] [1]: http://stackoverflow.com/questions/1179758/function-vs-stored-procedure-in-sql-server – 4b0 Sep 22 '11 at 09:50