I would like to set a maximum number of rows a SQL Server table I created can have. The thing is that I have a program that constantly writes new data in my datatable, but I only need to storage one value per column. So I'd like to set my maximum amount of possible rows for this datatable to one. Does anyone have an idea how to do this?
Otherwise as I haven't found a possibility to do this so far, I also thought about rewriting my code and using the SQL UPDATE statement.
I am not so sure about what would be better.