0
Just an example of query sql server:
SELECT A.name FROM [banco1].sys.procedures as A
What I need is for this query above to be changed to something like:
SELECT A.name FROM [@nomeBanco].sys.procedures as A
'Cause then I can do something like:
declare @nomeBanco varchar(50) = "Banco1"
select A.name from [@nomeBanco].sys.procedures as A
Thank you to everyone who can share ideas. Happy New Year 2021.
is a good idea... but I’ll wait to see if there’s anyone else with something simpler.
– Fabio Santos