I want to retrive the table information from other server database.
Query like ‘Server2
I already linked the server
Select * from server2.database1.dbo.table1
It’s showing login failed for user sa
Any other alternative query for passing the password in select query..?
like
Select * from server2.database1.dbo.table 'sa'
Any help suggestion…?
For linked server – there is no any alternative, but you may use OPENROWSET function which accepts server/user/password