mcpeekj
Vendor
- Sep 21, 2001
- 105
Got another one for you guys...
I have some client activity data in a MSSQL db. Unfortunately the clients are references by codes and the translations are only available in another MSSQL db on a different server (don't ask).
So my solution to this is to dump the translations into an array, then dump the activity data into an array and replace the client codes with the translations in the activity array.
My problem is that I then need to sort my activity array by multiple fields (which would have been easy to do in the original query), but can't find any scripts anywhere to do that. I can only sort on 1 field at a time.
Any thoughts on how I can sort on multiple columns? Should I do something like drop the translated array back into a recordset and sort there (don't know if that's possible or not)? Should I go about this some totally different way?
Joining the tables across the different servers is not an option.
I have some client activity data in a MSSQL db. Unfortunately the clients are references by codes and the translations are only available in another MSSQL db on a different server (don't ask).
So my solution to this is to dump the translations into an array, then dump the activity data into an array and replace the client codes with the translations in the activity array.
My problem is that I then need to sort my activity array by multiple fields (which would have been easy to do in the original query), but can't find any scripts anywhere to do that. I can only sort on 1 field at a time.
Any thoughts on how I can sort on multiple columns? Should I do something like drop the translated array back into a recordset and sort there (don't know if that's possible or not)? Should I go about this some totally different way?
Joining the tables across the different servers is not an option.