-1

The name of a link server in sys.servers has a \ in it. When I try to pass that to openquery() it gives a syntax error. I've tried escaping it with another \ with no luck. Any ideas on how I can get openquery() to work where the linked server name has a \ in it?

user441521
  • 6,942
  • 23
  • 88
  • 160

1 Answers1

1

Wrapping it in brackets worked [test/test]. Thank you.

user441521
  • 6,942
  • 23
  • 88
  • 160