All of the problems I have had with speed and SQL have to do with either inefficient translation of C/AL code into transact SQL statments or maintaining and calculating Flowfields(maintaing the SIFT tables). Both are bottlenecked due to Disk I/O not memory or processors. Of course, I think it goes without saying that sufficient memory and processors are a requirement and can't imagine a decent sized SQL implementation witout at least 500M-1GB RAM and 2 500mhz processors.
To address Nordtorp's test, importing large files via dataport into SQL is slow and is a known issue(similar to the version 1.1/1.2 issue native nav had with dataports, although not as bad). My client brings in 50,000 records into their SQL database every day via DTS(logged) using an active X transformation script(to modify the data as it comes in) and it takes ~10 sec. to bring in these records.
In my experience with this product, if you have more than 2 processors your pretty much at a dimishing return. I currently have a client that is in the process of converting to SQL who will have a 50GB DB after a full conversion. I have a smaller 30GB database currently running on the client's server (4-PIII Xeon 500, 7-seperate RAID arrays(the one containing the large .NDF's(the .MDF is 20MB on a seperate drive) has 14 spindle's), 2GB RAM). I have adjusted the envrionment to restrict SQL from consuming 500M-2GB without much of a noticable diffrerence during intesive activity. On the same server during intensive tasks, perfmonitor is averaging ~70% 30% 5% 5% for processor useage.
The C/AL code translation into T-SQL is one place you are going to want to focus on, especially in smaller installations. Changes as small as the order and how (setfilter/setrange) that filters are set within the C/AL can make drastic differences in the performance of the product. Spend time with the SQL profiler while using the navision debugger and you can see what statements are time intensive.
Again, obviously if you starve the system of any one resource you will seriously impact performance. However, due to the disk intensive nature of this product(due to SIFT) I seriously recommend making your disk subsystem your prime concern (after meeting resonable requiements of other resources).
Mike Dertian
Programmer/IS
Aston-Frontline