Explain how to use linked server?
Answer / Subhas Chandra Srivastava
A Linked Server in SQL Server allows you to access data residing on another database or data source as if it were a local table. This can be useful for joining data from multiple sources.nnTo create a linked server, you would use the sp_addlinkedserver stored procedure. Here's an example:nEXEC sp_addlinkedserver @server = N'MyLinkedServer', @srvproduct=N'ODBC Driver 13 for SQL Server', @provider=SQLNCLI13, @datasrc=<Your_Remote_Database_Server>, @provstr=<Your_Connection_String>nAfter creating the linked server, you can reference remote tables using four-part names: [linked_server._schema._table].
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you make a trace?
What is an indice?
What does it mean to have quoted_identifier on? What are the implications of having it off?
What do you understand by user-defined function in the sql server?
How to provide login information for a new odbc dsn?
If a stored procedure is taking a table data type, how it looks?
What is 3nf normalization form?
What is scrollable cursor?
How do I setup a local sql server database?
Which sql server table is used to hold the stored procedure scripts?
What is self contained scalar sub query?
can an automatic recovery be initiated by a user? : Sql server administration
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)