Advertisement
Guest User

Untitled

a guest
May 24th, 2016
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. EXEC master.dbo.sp_addlinkedserver
  2. @server = N'ACCESSDB',
  3. @srvproduct=N'ACCESSDB',
  4. @provider=N'Microsoft.ACE.OLEDB.12.0',
  5. @datasrc=N'\192.168.100.64accessdb$MyAccessDb.accdb',
  6. @provstr=N';PWD=THEPASSWORD;Mode=Read'
  7.  
  8. EXEC master.dbo.sp_addlinkedsrvlogin
  9. @rmtsrvname=N'ACCESSDB',
  10. @useself=N'False',
  11. @locallogin=NULL,
  12. @rmtuser=N'theremotedomaintheuser',
  13. @rmtpassword='theuserpassword'
  14.  
  15. TITLE: Microsoft SQL Server Management Studio
  16. ------------------------------
  17.  
  18. The test connection to the linked server failed.
  19.  
  20. ------------------------------
  21. ADDITIONAL INFORMATION:
  22.  
  23. An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
  24.  
  25. ------------------------------
  26.  
  27. The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "ACCESSDB" reported an error. Authentication failed.
  28. Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "ACCESSDB".
  29. OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "ACCESSDB" returned message "Not a valid account name or password.". (Microsoft SQL Server, Error: 7399)
  30.  
  31. For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=10.50.3720&EvtSrc=MSSQLServer&EvtID=7399&LinkId=20476
  32.  
  33. ------------------------------
  34. BUTTONS:
  35.  
  36. OK
  37. ------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement