I have @db_out = 'aux.dbo.some_table_name' , and I don't know how to drop , create based on that variable like :
IF OBJECT_ID(@db_out) IS NOT NULL DROP TABLE "@db_out" - not working
CREATE TABLE "@db_out" .... etc
it creates master.dbo.@dbo_out
How can I use that variable to create that table or verify it and drop it ?