How to link Databases on MSSQL

  • Hello

    i need to link two additional databases (MSSQL) into one MSSQL-Database. As of design it is not possible to store all tables in just one DB. Can you tell me wheter this is possible and yes, how?

    Thanks

    Matt

  • sp_addlinkedserver @server 'additional_server', @srvproduct = N'SQL Server'

    You might have to play with the parameters (sp_addlinkedserver has up to 7 of them).

  • I found out that there are no linked tables as in access. Instead DB´s can be accessed with adding the databasename befor the table name...

    Thanks anyway for the reply

  • Ahhh they're all on the same server.  Yes, 4 part naming will do the job.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply