December 1, 2011 at 8:28 am
I'm trying to assign a string to a variable that contains a Quote and I can't recall the syntax.
Obviously this crashes and burns.:-D
DECLARE @Suffix VARCHAR(12)
SET @Suffix = ')') AS DB2'
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 1, 2011 at 8:39 am
DECLARE @Suffix VARCHAR(12)
SET @Suffix = ')'') AS DB2'
SELECT @Suffix
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply