Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7853651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:45:40+00:00 2026-06-02T19:45:40+00:00

I am developing an sproc for SSMS 2008 R2 report parameter in SSRS. I

  • 0

I am developing an sproc for SSMS 2008 R2 report parameter in SSRS. I am currently populating this parameter with this script:

Select
    Null As [program_id],
    '-All-' As [program_name]
UNION ALL
SELECT DISTINCT
    [program_info_id] AS [program_id],
    [program_name]
FROM [evolv_reports].[dbo].[programs_view]
Order By [program_name]

But the problem is now there is a new program_name named “(MS) Family Preservation Services”. This Program is listed before “-All-“, so that now this report parameter no longer defaults to “-All-“. How do I make “-All-” Listed first again? Here is a portion of my current parameter output:

program_id  program_name
406B3C38-D8D3-4ED5-AC5B-9013D3662931    (MS) Family Preservation Services
NULL                                    -All-
F6E2C172-2BFB-45BC-B870-E7BC2414DD91    Adoptions - Agency
C766E084-AB03-41AD-92B9-494FF3975E10    Adoptions - Subcontract
C21DACE0-8F34-433D-BE24-A79DE322F7EF    AL Step down foster care
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:45:41+00:00Added an answer on June 2, 2026 at 7:45 pm
    SELECT [program_id], [program_name] FROM 
    (
       Select 
      Null As [program_id], 
      '-All-' As [program_name] ,
      0 as num1
      UNION ALL 
     SELECT DISTINCT 
      [program_info_id] AS [program_id], 
      [program_name] ,
      1 as num1
    )a
    ORDER BY a.num1, a.[program_name] -- or just by a.num1 if you don't need to sort by program_name
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a stored proc for an SSRS 2008 report, but I want
I am developing an SSRS 2008 report. I created one dataset to give me
Currently developing an application using the newest version of symfony, obtained through PEAR. This
While developing a firefox extension, I create a wizard window from overlay.js using: this.wizard
Developing a multilingual application in VB.Net 2008, Im able to add resources to forms
Developing a VSS writer app: see this error during backup, initiated by windows backup
Developing an app where all tabular data is returned as an object. Some cells
Developing is more of a hobby at the moment; so apologies if this is
Developing a web application that I've registered with Twitter. In this app, I might
When developing a new component in Delphi, I run into this inefficiency. Every time

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.