|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, March 04, 2013 3:42 PM
Points: 26,
Visits: 110
|
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, May 30, 2013 8:03 AM
Points: 266,
Visits: 1,025
|
|
Just a reminder that in SQL Server 2008 onwards you can use the following to represent a binary value as a character string (rather than a CTE or sp_hexadecimal):
SELECT CONVERT(VARCHAR(12), 0x68656c6c6f, 1)
--0x68656C6C6F Chris
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, March 04, 2013 3:42 PM
Points: 26,
Visits: 110
|
|
| True, thank you, that would eliminate the need for those CTEs. I wish the servers in our environment were all 2008.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Today @ 2:30 PM
Points: 3,
Visits: 174
|
|
| This Script is generating all kinds of Syntax Errors both in SQL 2005 and SQL 2008R2! Does anyone faced the same issue?
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Monday, March 04, 2013 3:42 PM
Points: 26,
Visits: 110
|
|
I have had errors with non-default collations or trying to create the procedure in a database in 80 compatibility. Hard to guess without knowing the errors.
|
|
|
|