In a new SSRS 2008 r2 report, I am going to be using sql within a dataset and not a storedprocedure since will I need to pass multiple values to each parameter.One of the parameters that I will be working with is allowing the user to be able to pick what itemsthey want to sort on. The sort will have 3 items that will be always be sorted on first which are:year, and school_number. The users will be able to pick additional items to sort on like grade, and teacher.The following is the sql that I have so far:select year, school_number, grade,teacher,room,course_number, course_namefrom dbo.schoolorder by year, school_number, several parameter values.Thus I am wondering if you would modify the sql above so that I can allow the user to sort on the additional parameters in any order like grade,teacher,room,course_number, course_name?If any part of my request is not possible, I am wondering if you would show me what is possible in the sql?
↧