Can source code examples be kept in a SQL database while retaining all formatting (tabs, newlines, etc.)? If so what data type would be used?
views:
103answers:
4
+1
A:
A BLOB type (varbinary) would definitely work, although databases shouldn't mangle text that's stored as varchar either.
James Curran
2008-10-30 14:40:04
A:
You can upload this into a blob data type. SQL 2008 comes with the capability of storing the entire executable file in the database.
websch01ar
2008-10-30 14:41:21