A few things:
1. For EVERY field that you submit to the database, escape single quotes by doubling them up. This prevents 99% of the hacks and keeps...
You need to explicitly perform the replace for each field. You could put all the form values into an array and loop it, but then you wouldn't know which is which to put into your SQL statement. Of...
A million unique items? Wow. A well thought out schema and appropriate indexing is going to be key. That said, the amount of data isn't the issue, it's the amount of transactions. How many write...
Ok, there is a lot of misinformation in this thread. First, we really would need to know what DBMS you are using. That said, here are some general guidelines.
wow, that syntax isn't even close. (sorry, not trying to be a wise guy). if you are using query analyzer, hit the TEMPLATES tab and look at CURSOR. there is a cursor template that you can copy/paste...
how did u backup the database? with a backup command? or do u just have the .mdf and .ldf files? Also, what is the method u are taking to restore it? and where is the file(s) located? what do u mean...
ok, what i mean is that the physical limits i've already listed above. the theoretical limits to obtain good performance depend on the purpose of the database and how users/applications will interact...
the syntax in the original post clearly indicates SQL Server -- as does the text of the question itself :) and it quite elegantly solves the main issue