我有一個運行存儲過程的SSRS訂閱。SSRS訂閱在第1000個字符周圍添加空格
當電子郵件發送時,它會在電子郵件的第1000個字符周圍添加一個空格。
不幸的是,該空間中有一個href導致鏈接失敗。
電子郵件有幾個動態部分,所以空間出現在鏈接的不同部分。我的用戶對格式要求非常嚴格,並希望鏈接處於確切的位置。
有誰知道一種方法來阻止空間出現?我試過使用無包裝標籤,但仍然失敗。
對於亂碼,我表示歉意。我沒有發佈到StackOverflow很多。
declare @Instructions nvarchar(max) = '<a style="white-space:nowrap;" href ="http://www.uab.edu/research/administration/offices/OSP/Guidance/Pages/Instruct ions-VAMOU.aspx">Instructions</a>'
'DATE: ' + CONVERT(varchar(10),@parmReportDate, 101) + '
To: ' + r.pi_name + '
From: nameaa aaaaaaaaaa
The UAB/VA Memorandum of Understanding (VA-MOU) defines the formal arrangement between UAB and the Birmingham VAMC when a UAB investigator receives or applies for NIH funding, directly or by subaward through a UAB appointment, and that investigator also has a VA appointment.
Per the '+ @NIHPolicy+ ', the MOU must be updated with each significant change or at least one year from the last revision if there were no
significant changes. Significant changes include such things as a change in VA appointment or a change in research commitment of 25% or greater.'
+
'<b> This notification is a reminder that annual certification of your VA-MOU is due in ' +
CASE
WHEN @parmreportdate = DATEADD (Day, -60, p.app_end_dt) THEN '60' --and p.app_end_dt
WHEN @parmreportdate = DATEADD (Day, -30, p.app_end_dt) THEN '30'
WHEN @parmreportdate = DATEADD (Day, -15, p.app_end_dt) THEN '15'
WHEN @parmreportdate = DATEADD (Day, 0, p.app_end_dt) THEN '0'
END
+ ' days. Use the ' + @Instructions+ ' below to complete the annual certification '+ @VAMOUForm+ '. (This MOU is maintained in IRAP by OSP with an OSP Assigned Number of ' + r.inst_no + '. You will need to reference this number when you complete the form.)
<b>Please direct any questions to the Office of Sponsored Programs at email or phonenumber.</b>'
這將是(a)中的數據問題或(b)編碼問題,但您需要提供來源和結果以獲得一些幫助。 – BIDeveloper
生病看看我可以添加什麼。它發生在由不同人編碼的多個訂閱中。我不確定它是否可能是一個ssrs問題。 – bepike
不確定爲什麼它會在stackoverflow上添加空格。這裏是我的代碼在隨機的地方沒有空白 – bepike