Que: What is the syntax for using linked server stored procedure in SQL Server?

a. sp_linkedserver [ @server= ] ‘server’ [ , [ @srvproduct= ] ‘product_name’ ][ , [ @provider= ] ‘provider_name’ ][ , [ @datasrc= ] ‘data_source’ ][ , [ @location= ] ‘location’ ][ , [ @provstr= ] ‘provider_string’ ][ , [ @catalog= ] ‘catalog’ ]
b. sp_addlinked [ @server= ] ‘server’ [ , [ @srvproduct= ] ‘product_name’ ][ , [ @provider= ] ‘provider_name’ ][ , [ @datasrc= ] ‘data_source’ ][ , [ @location= ] ‘location’ ][ , [ @provstr= ] ‘provider_string’ ][ , [ @catalog= ] ‘catalog’ ]
c. sp_addlinkedserver [ @server= ] ‘server’ [ , [ @srvproduct= ] ‘product_name’ ][ , [ @provider= ] ‘provider_name’ ][ , [ @datasrc= ] ‘data_source’ ][ , [ @location= ] ‘location’ ][ , [ @provstr= ] ‘provider_string’ ][ , [ @catalog= ] ‘catalog’ ]
d. sp_addlinkedser [ @server= ] ‘server’ [ , [ @srvproduct= ] ‘product_name’ ][ , [ @provider= ] ‘provider_name’ ][ , [ @datasrc= ] ‘data_source’ ][ , [ @location= ] ‘location’ ][ , [ @provstr= ] ‘provider_string’ ][ , [ @catalog= ] ‘catalog’ ]
Answer: sp_addlinkedserver [ @server= ] ‘server’ [ , [ @srvproduct= ] ‘product_name’ ][ , [ @provider= ] ‘provider_name’ ][ , [ @datasrc= ] ‘data_source’ ][ , [ @location= ] ‘location’ ][ , [ @provstr= ] ‘provider_string’ ][ , [ @catalog= ] ‘catalog’ ]

Leave a Comment