I have a query for a test database that relies on a function installed in that database. I need to run this request on another server that does not have this function and on which I cannot install this function.
Are there any elegant and / or practical solutions? The function is quite complicated with a number of parameters, so I was hoping there was a syntax that would allow me to mark the section of my request as a function, and then call this code from the main body of the request.
I tried Google, but unfortunately, as you might imagine, the words associated with this only lead to articles on how to create functions.
Edit: For this, I am limited to the functionality of SQL Server 2000.
source share