I'm trying to pass in a variable
to a store procedure. Based on the variable the s/p will look at the linked server
DECLARE @my_LinkedServer
SELECT COUNT(brands)
FROM @my_LinkedServer.Linkedserverlocal.dbo.brands
I get the error Incorrect syntax near '.'.
However if I hard code the @my_LinkedServer it works fine