Oracle has a CLOB type and the function EMPTY_CLOB().
I’m looking for an alternative for use in SQL server.
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A lot of older documentation and articles say that CLOB is equivalent to TEXT in MSSQL, but TEXT is now deprecated in favour of NVARCHAR(MAX). That assumes you have MSSQL 2005 or 2008, of course: 2000 only had TEXT.
As for EMPTY_CLOB(), I have no idea what it does but check out “Using Large-Value Data Types” in the MSSQL documentation for details of functions that you can use with NVARCHAR(MAX):
http://msdn.microsoft.com/en-us/library/ms178158.aspx