This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, we ran into the 2100 parameters limit of mssql a couple of times (the workarounds are quite easy but also force to write additional code and execute multiple queries). The nasty thing about this is, that it can be easily missed and only occurres in production after a year or two. We did a test now and found that there is room for improvement. We start with this:
First try using LightSpeed:
Second try "by hand":
It works. Are we missing something when we use LightSpeed? |
|
|
No, we don't try and detect for this type of problem since its specific to MySQL. You can also work around this by taking a batched approach of say 1000 at a time when building your query which will keeps it paramaterized rather than building up the raw SQL directly as in your "by hand" example. e.g.
|
|
|
Thank you for your answer. Your example is basically what we have been doing. I think that the use of MSSQL is quite common for a .net-based-framework and this type of code creates quite a lot of overhead all over the code. |
|