This is my first post so if I get it wrong, please let me know.I am attempting to add two linked servers. One is a link to a SQL Server on another server in our network and the other is to an Access DB . So far all I have proved is that I must be crazy. I keep trying the same things over and over again hoping for different results.I've searched the Internet and have come up with the following. All the videos I have seen go the other direction, making SQL Tables available in Access. I need the Access tables available in SQL.Here is the code to add the connection to the other SQL serverexec sp_addlinkedserver @server=N'bcm' , @srvproduct=N'' , @provider=N'SQLNCLI11' , @datasrc=N'\\srv-apps01\BCMMaster'exec sp_addlinkedsrvlogin'bcm','true','<network>\<userid>','<password>'select * from bcm.BCMMaster.dbo.ContactMainTableresult:OLE DB provider "SQLNCLI11" for linked server "bcm" returned message "Login timeout expired".OLE DB provider "SQLNCLI11" for linked server "bcm" returned message "A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.".Msg 87, Level 16, State 1, Line 22SQL Server Network Interfaces: Connection string is not valid [87]. I checked and both servers are configured to allow remote connections.For the Access DB we set up a .DSN (after several failed attempts at other types of connections) and here is that code.exec sp_addlinkedserver @server=N'AccessSchedule' ,@srvproduct=N'' ,@provider=N'Schedule' ,@datasrc=N'LocalServer'exec sp_addlinkedsrvlogin AccessSchedule,False,NULL,Admin,NULLSelect * from [Access].master.sys.databases;with the result of the Select query.Msg 7202, Level 11, State 2, Line 10Could not find server 'Access' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.Any help will be greatly appreciated.
↧