What is wiki / stackoverflow / etc. do when it comes to storing text? Is text broken for newlines? Does it break into pieces of fixed length? What is the best way to store arbitrarily long pieces of text?
nvarchar (max) ftw. because simple things that are too complicated are bad, mmkay?
I assume that if you need to provide the ability to store large fragments of text, and you do not mind that you cannot look too much into their contents when prompted, you can use CLob.
, , . , - , , /, . , , .
, RDBMS, , ( varchar (max)). , .
PostgreSQL - BYTEA. , .
, , "" , , , , - db .
.
, StackOverflow "" . , UTF8 ( UTF16 - . , SQL Server, ).
, " " . , , , , (, Markdown, HTML, "" )
, , , , ..
, SQL Server, , . SQL Server 2005 nvarchar (max) . , / , , StackOverflow.com.
. , .
, , , . HTML, , .
, , , Unicode UTF-8 . . . , , ASCII , ..
SQL Server:
varchar (max) . , 2 .
. , . .Net SqlCommand LinqToSQL ( SqlCommand ).
Source: https://habr.com/ru/post/1697150/More articles:Каков наилучший способ межпроцессного взаимодействия между Java и .NET 3.5? - javalooking for good resume SQL 2005 Partitioning - sql-serverEasiest way to update client side javascript variable during ASP.NET AJAX postback to UpdatePanel? - javascriptHow does jstl sql tag work? - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1697149/passing-parameters-to-start-as-a-console-or-gui-application&usg=ALkJrhjA-31V57Rt5-hn1DWbxyVe6bsQnAWhy is my program asking for permission to run in Vista? - visual-studio-2008What makes Firefox make a GET request after submitting the form via the POST method? - firefoxВарианты дизайна пользовательского интерфейса с Groovy/JRuby/Jython или другими языками JVM? - javaOLEDBConnection.Open() генерирует 'Unspecified error' - debuggingглавы в видео для iPhone - iphoneAll Articles