I need to build a statement at run-time and then execute the statement on a remote server. Unfortunately, I have been unable to achieve this using OPENQUERY because it does not accept variables as parameters. Does anyone know of another way of achieving this?
Thanks