I need to set the maximum number of rows in SQL Server Compact 3.5 Database tables: the database consists of some tables and each table should have a different maximum number of rows.
If the answer is yes, what is the default rule when the tables are full? Can I set a custom rule (for example I would delete the row with minimum ID, where ID is a column)?
Without triggers, you could have a table with one column of integers 1 through max row#, and then in the table where you want to only allow up to max row# define a row number column with a UNIQUE constraint and a foreign key constraint pointing to the table with 1 through max row#. You would need to handle keeping the next row number at the right value, and you would need to write code to handle the foreign key constraint exception once you reach the max row#. Obviously, this is a pretty big hack and will not be good to maintain.