Reputation: 63
Is there a way to insert long strings into SQL Server like:
" [$('<input>').attr({'class':'inp'}), ['type:Input']]; "
without having to break it into dozens of pieces?
Upvotes: 0
Views: 668
Reputation: 3102
Silly question, and here is the silly answer:
declare @longstring varchar(max)
set @longstring = '[$('''').attr({''class'':''inp''}), [''type:Input'']];'
Upvotes: 1