Skip to content
Advertisement

DELETE FROM Openquery

I’m doing a project at work regarding linked servers. As we need to pass the name of the linked server I came up with this approach:

But I get the following error: Wrong syntax near ‘Y4081’.

I get the same error when trying it that way:

I’m really stuck at this point and I don’t know how to solve it. If you guys could help me I’d be the happiest man alive! Or if you have a better and/or easier approach just tell me! Thanks in advance!

Advertisement

Answer

This worked for me 😉 Kinda silly how many ””” you need in these openquery things.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement