I have the following code (inherited from a contractor):
public partial class StoredProcedures
{
#if NO_THREAD
readonly static String version = "XXXX, Version 1.02, Apr/29/2010";
#else
readonly static String version = "XXXX, Version 0.93, Dec/21/2006";
#endif
I can't seem to find NO_THREAD anywhere else. This is code that compiles and installs as a SQL assembly. Is it something special or am I missing something simple?
NO_THREADlooks like a conditional compilation symbol.NO_THREADpreprocessor definition. This is why maintenance branches make sense. Or, it could be for compiling to target SQL Server 2005 and SQL Server 2008 in which caseNO_THREADmaintains support for one and not the other.