please!!!!! what is that you want to select a db in linked server its so simple
select * from servername.dbname.dbo.tablename
IF NOT EXISTS (SELECT * FROM servername.dbname.sys.tables where name = @tablename)
BEGIN
CREATE TABLE [dbo].[YourTable](
....
....
....
)
END