user1009749
user1009749

Reputation: 63

Insert long strings into SQL

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

Answers (1)

Ryk
Ryk

Reputation: 3102

Silly question, and here is the silly answer:

declare @longstring varchar(max)
set @longstring = '[$('''').attr({''class'':''inp''}), [''type:Input'']];'

Upvotes: 1

Related Questions