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 4039204
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:34:35+00:00 2026-05-20T12:34:35+00:00

I created three tables in SQL Server 2008, all with Code char(1) not null,

  • 0

I created three tables in SQL Server 2008, all with

Code char(1) not null,
Description varchar(50)

then three sprocs, all by

create name_menu as
begin
set nocount on;
select Code,
       Code + ' - ' Description as Description
  from name;
end;

(name being the part the varies)

Added each sproc to an SSRS 2008 report as a dataset. then added each dataset as a parameter, with Code as Value, Description as label

In the report, two of the menus look as expected, but one shows only the code, the ‘ – ‘ and the first letter of the description. If I add the parameter value to the report as a textbox, the description part has the “boxes” typical of trying to display UTF-16 little endian in an ASCII field.

I searched the XML of the report and found that all non-numeric datatypes are String or System.String

I checked

SELECT inf...schema.columns where DATATYPE = 'NVARCHAR'

…and there are none.

I deleted the sproc and ran the create statement again, then told SSRS to refresh the fields.

Older versions of SSRS used to cache data and sometimes would fail to refresh, so I looked for cache files to delete. Didn’t find any.

I should be able to cast the results, but I shouldn’t have to. (And it wouldn’t surprise to be told “you can’t do that”)

Advice?

  • 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-05-20T12:34:36+00:00Added an answer on May 20, 2026 at 12:34 pm

    (embarrassed)
    Don’t know how it happened, but somehow the original text in the table was converted to UTF-16, and inserted back into the table as if it were ASCII. So every other character was a null. SSRS was attempting to render what was actually there as the datatype it was claimed to be.

    Since I had seen the correct text in the table shortly before seeing the bogus text in SSRS, I didn’t bother looking there again. A colleague actually found it.

    It does show two bugs though: SSRS did the right thing in a text box, showing each null as a “box” But in the menu, it treated the first null as the end of the string. And SSMS did the same thing in the results grid of a select statement.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

using asp.net, sql server 2008, winserver2003 we have about 10 tables with about 20
I have a brain-teaser for all you SQL Server 2008 Reporting gurus out there
Is there a query in SQL Server 2008 which will delete data from all
I am migrating a large quantity of mostly empty tables into SQL Server 2008.
I have a routine that will be creating individual tables (Sql Server 2008) to
I am using SQL Server 2008 R2. I have imported 2 tables from excel
I am playing a little with fulltext indexes in Sql Server 2008. I created
We're upgrading from SQL Server 2005 to 2008. Almost every database in the 2005
We have a legacy database which is a sql server db (2005, and 2008).
I need to delete many rows from sql server 2008 database, it must be

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.