-1

Is there an effective and/or fast way to show Html entities like & or ë as & and ë in an report viewer's parameter drop down list?

I have html encoded values in the database and now I need to show the original value in parameter drop down list

Or does MSSQL have an equivalent for this?

4

2 回答 2

1

SQL Server doesn't have a built-in HTML decode function. Your options as I see it are

  1. A series of REPLACEs as long as Earth to Mars
  2. A CLR module as a SQL Function (I would use this)
  3. Programming change to store another column with the un-encoded html string when inserting
于 2012-10-04T12:52:22.213 回答
0

To not loose any performance on the reporting, the users must change these characters in the GUI in order not to see them anymore...

No other suitable solution found for this situation. An mass update on all text columns was an other solution as well, but not really necessary.

于 2012-10-16T20:45:56.120 回答