मान लिया जाये कि निम्नलिखित परिभाषा: मान छोटा कर दिया जा रहा हैसीएलआर यूडीएफ में एक nvarchar (अधिकतम) कैसे वापस करें?
/// <summary>
/// Replaces each occurrence of sPattern in sInput with sReplace. This is done
/// with the CLR:
/// new RegEx(sPattern, RegexOptions.Multiline).Replace(sInput, sReplace).
/// The result of the replacement is the return value.
/// </summary>
[SqlFunction(IsDeterministic = true)]
public static SqlString FRegexReplace(string sInput, string sPattern,
string sReplace)
{
return new Regex(sPattern, RegexOptions.Multiline).Replace(sInput, sReplace);
}
लंबाई> 4000 के साथ sInput
के लिए एक nvarchar(max)
मूल्य में पासिंग परिणाम होगा (यानी इस यूडीएफ बुला का परिणाम nvarchar(4000)
है के रूप में करने का विरोध किया nvarchar(max)
आप एक स्टार हैं, महोदय :) –
उस तंत्र को संदर्भित संदर्भ में स्पष्ट रूप से वर्णित किया गया है - जिस उत्तर में आप नीचे मतदान करते हैं। – bielawski