SQLRecon icon indicating copy to clipboard operation
SQLRecon copied to clipboard

Executing RPC queries on linked SQL servers with an FQDN fails

Open skahwah opened this issue 1 year ago • 1 comments

There is currently an issue where any RPC queries that have an AT statement will fail on the destination server if the supplied hostname is a FQDN and not a NETBIOS name. This is because I am not wrapping the destination server in braces.

For example, this currently works:

EXECUTE ('sp_configure ''clr enabled'', 1; RECONFIGURE;') AT sql02;

Whereas, this currently fails:

EXECUTE ('sp_configure ''clr enabled'', 1; RECONFIGURE;') AT sql02.corp.local;

However, correcting the query to the following will allow it to work:

EXECUTE ('sp_configure ''clr enabled'', 1; RECONFIGURE;') AT [sql02.corp.local];

The change needs to be made here. It's a quick fix, and I will take care of it as soon as possible.

skahwah avatar Sep 19 '24 18:09 skahwah

This has been completed in the 3.9-dev branch

skahwah avatar Sep 19 '24 20:09 skahwah

Merged into main

skahwah avatar Dec 17 '24 17:12 skahwah