database reference for Linked Server Object

elsvieta 20 Reputation points
2023-02-03T13:32:39.6266667+00:00

Hi all,

I imported a SQL Server 2016 database into a VS 2022 SQL Server Project and the import finished without exceptions.

When I tried to build the project, though I got a whole bunch of warnings about non existent referenced objects and that is because the stored procedures are referencing other databases in the same instance.

How do I add databases that are referenced through Linked Servers?

Thanks,

vv

Azure SQL Database
SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. Olaf Helper 47,436 Reputation points
    2023-02-07T06:35:04.2366667+00:00

    How do I add databases that are referenced through Linked Servers?

    Through linked server? Not possible in a SSDT project.

    You can additional import the other databases as well, but cross-database/cross-server access isn't really working well in SSDT.

    See Add Database Reference Dialog Box

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.