Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. please modify the Store Procedure

please modify the Store Procedure

Scheduled Pinned Locked Moved Database
sharepointdatabasesql-serverhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vinu 1111
    wrote on last edited by
    #1

    hi.. The following is my Sp SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[GettomoTaskSheet] -- Add the parameters for the stored procedure here @fname nvarchar(50) AS BEGIN SET NOCOUNT ON; SELECT date,To_Name ,Todays_Task,Status ,Tommorrows_Task,REPLACE(Comments, 'vinni','<font color="red">raki</font>') as comment from TaskSheet where From_Name = @fname; END The above SP is used for displaying the data in SSRS reports .. but when i run the SP in comment field where vinni occurs i want raki in red color but it is displaying <font color="red">raki</font> this value. i want to display the word raki in red color in ssrs2008 reports please help me..

    M 1 Reply Last reply
    0
    • V vinu 1111

      hi.. The following is my Sp SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[GettomoTaskSheet] -- Add the parameters for the stored procedure here @fname nvarchar(50) AS BEGIN SET NOCOUNT ON; SELECT date,To_Name ,Todays_Task,Status ,Tommorrows_Task,REPLACE(Comments, 'vinni','<font color="red">raki</font>') as comment from TaskSheet where From_Name = @fname; END The above SP is used for displaying the data in SSRS reports .. but when i run the SP in comment field where vinni occurs i want raki in red color but it is displaying <font color="red">raki</font> this value. i want to display the word raki in red color in ssrs2008 reports please help me..

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      You are putting UI processing in the database query, wrong tool for the job. The data is interpreted as a string literal. Move your UI code to RSS, there is a function area where you can put in the code to do that.

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups