Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Script Library
 Undocumented SQL func : UNCOMPRESS

Author  Topic 

hgorijal
Constraint Violating Yak Guru

277 Posts

Posted - 2004-10-12 : 06:36:40
Useful from scripting stored procedures and views...

Ex :

SELECT CAST(CASE WHEN ([status] & 2 = 2) THEN (UNCOMPRESS([ctext])) ELSE [ctext] END AS nvarchar(4000))
FROM syscomments WHERE ID=OBJECT_ID('sp_helptext')



Hemanth Gorijala
BI Architect / DBA...
   

- Advertisement -