Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Paragraphs in nVarChar(max)
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Paragraphs in nVarChar(max)
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01469618
Message ID:
01469618
Vues:
106
Hello,

I have a nVarChar(max) field. I have several short stories that I want to paste into the fields -- 1 story per record.

Each story has several paragraphs.

When I copy the entire story from NotePad and paste it into one of the nVarChar(max) fields, the paragraphs are not respected and everything runs together.

I find that if I programatically paste one paragraph at a time along with a concatenated "\n", the nVarChar(max) field does respect the paragraphs.

Of course, that is an awful lot of cutting/copying/pasting for each story.

What is the easiest way to copy and paste the stories into the nVarChar(max) fields and maintain the paragraph formatting?

Thanks,

TFISHER
Thanks,

TFISHER
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform