ASP.NET Web Pages - Storing nvarchar more than 4000 character - asp.net

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.

Related

does sisoDB use sql server database to store data

I'm looking for a NoSQL database to use with asp.net , and I came to sisoDB . but as I understood it uses Sql server to save data and so it can use sql server features like security and ... .
is it correct ? and what are pros and cons of this approach ?
As of now the storage is using SQL Server 2008, 2012 - Express edition and above as well as SQLCE, but not in a traditional manner: http://sisodb.com/wiki/core-concepts
I'm planning on other providers as well and also to bring full-text search plugins.

Can I use ASP.NET Membership with SQL Server Compact Edition?

I`m using SQL Server Compact Edition and ASP.NET DynamicData for the Admin area of a website.
I want to use ASP.NET membership using SQL Server CE. I'm aware of the fact that SQL Server CE does not supports sprocs, which are essential part of ASP.NET membership.
Thanks.
No you cant use SQLCE compact edition for ASP.NET Membership like #JustinStolle said You can use Sql Express for this or if you already have sql server exists use it as your backend.
Regards.

Using LINQ to connect with multiple databases

I am developing an ASP.NET application in which I need to provide support for two databases, MySql and MS SQL Server 2005 and 2008 (one database will be used at a time).
How will I configure the ASP.NET app to connect with different databases without reinstalling the app (i.e. using configuration)?
How will I configure LINQ?
Shouldn't I use NHibernate?
Use basic Linq to SQL structures (nothing database specific) and by just changing the connection string should do the trick. Linq expression trees are transformed to SQL by Linq enabled drivers (i.e. they know how to handle the expression tree).
Here is better way of doing it: Multiple database support with Entity Framework.

Why would I want to pay my webhost for a MS SQL database over a MySQL database?

I'm in the market for an ASP.NET host to start learning on and to host personal projects. I've noticed most of them provided both MySQL and MS SQL databases. However, usually they will only provided a couple MS SQL databases, but a large number (like 10) MySQL Databases.
Can I use a MySQL database as a back end to a ASP.NET website? If so why would I want to pay extra to use MS SQL over MySQL?
Yes you can use MySQL to drive a website using ASP.NET or any other web development technology for that matter. The reason for choosing SQL Server over MySQL would if there were features or performance characteristics you wanted in SQL Server that did not exist in MySQL. For example, common-table expressions do not exist in MySQL. If there are no features in either that are driving your decision, then it comes down to personal preference and cost.
If you're more comfortable with Sql Server then clearly it'd be worth going down that route, for a small scale site it really does come down to personal preference. That said there are things such as the asp.net membership providers that come, by default, with support for Sql Server as opposed to MySql so that could be a deciding factor for you.
Ultimately, it comes down to personal choice. Which do you prefer and are you willing to pay if Sql Server is your preference?

Using mySql data in ASP.NET application

I am a newcomer to ASP, and would like to experiment with it by writing a website for a club at my school using .net 2008 and the mySql database available from the school's apache server. What is the best way to set this up, since I see a lot of options to connect the web app to SQL Server or Oracle databases, but I'm nervous that it won't work correctly with mySql.
Also, will I still be able to use LINQ queries?
Get a hold of the MySQL Connector for ASP.NET and start coding as usual for MySQL. the connector gives you all the advantages of data adapters, data readers, etc. in the typical ADO.NET structure you are used to for SQL or Oracle. That way if you do swap things out on the back end in the future, you won't have to worry about swapping out all your connect/query code.
Check out this url: http://dev.mysql.com/tech-resources/articles/dotnet/index.html

Resources