I’m using Microsoft WebMatrix to develop a small website in ASP.NET Web Pages. I have a database table with a column that may contain more than 4000 characters.
Nvarchar has a limit of 4000 characters. When using SQL Server I can just use Nvarchar(Max). Is there anyway I can do this using WebMatrix’s database designer? Is it a limitation in the database and will I need to migrate it to SQL Server?
Just a side-question – does WebMatrix use a SQL Server Compact 4.0 database?
Many thanks for any help.
SQL Server Compact is the default database for web matrix, http://www.microsoft.com/web/post/migrating-sql-server-compact-to-sql-server-express-with-webmatrix.
nvarchar(max) is not supported in SQL Server Compact, but you could use nText. However, I don’t believe you can use an nText column in WHERE or GROUP BY clauses.