Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Adding Linked Servers Expand / Collapse
Author
Message
Posted Monday, January 30, 2012 2:32 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Sunday, January 13, 2013 11:24 PM
Points: 93, Visits: 259
I have been trying to add linked server. But I get the following error


TITLE: Microsoft SQL Server Management Studio
------------------------------

"The linked server has been created but failed a connection test. Do you want to keep the linked server?"

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

The OLE DB provider "SQLNCLI" for linked server "FTWP1IEGBOV01\GBOSQL1" reported an error. Authentication failed.
Cannot initialize the data source object of OLE DB provider "SQLNCLI" for linked server "FTWP1IEGBOV01\GBOSQL1".
OLE DB provider "SQLNCLI" for linked server "FTWP1IEGBOV01\GBOSQL1" returned message "Invalid authorization specification". (Microsoft SQL Server, Error: 7399)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.4035&EvtSrc=MSSQLServer&EvtID=7399&LinkId=20476


Can any one please help me why this is happening?
Post #1243935
Posted Monday, January 30, 2012 2:40 PM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 2:54 PM
Points: 1,899, Visits: 18,894
in 2008r2...sorry, havent got 2005 anymore...when creating the linked server there is a "security tab" that allows you you to specify the login to the remote server...have you checked this out?

__________________________________________________________________
you can lead a user to data....but you cannot make them think !
__________________________________________________________________
Post #1243939
Posted Monday, January 30, 2012 2:56 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 9:14 AM
Points: 5,018, Visits: 10,527
J Livingston SQL (1/30/2012)
in 2008r2...sorry, havent got 2005 anymore...when creating the linked server there is a "security tab" that allows you you to specify the login to the remote server...have you checked this out?


I can confirm that the form is identical in 2005.


na1774, set your security settings and you should be fine.


--
Gianluca Sartori

Get your two-cent-answer quickly
spaghettidba.com
@spaghettidba
Post #1243945
Posted Monday, January 30, 2012 3:03 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Sunday, January 13, 2013 11:24 PM
Points: 93, Visits: 259
Thank for the reply. I did add a remote user in the SECURITY tab. In the SECURITY tab for local user I gave the username which has sysadmin server role(I was creating the linked server logged in with the same account). In the Remote User I gave the name of the remote user which I manually created at the destination(i.e. I mapped the local user say 'X' which has sysadmin server role with the remote user say 'X' which is login at the destination with sysadmin server role). Even the remote user also has sysadmin server role. Now I came back to the source server and tried running a query on the remote server. For Example

select * from [FTWP1IEGBOV01\GBOSQL1].MVDB.dbo.ab

{**[FTWP1IEGBOV01\GBOSQL1] is the linked server instance name}

I get the following error.


OLE DB provider "SQLNCLI" for linked server "FTWP1IEGBOV01\GBOSQL1" returned message "Invalid authorization specification".
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "SQLNCLI" for linked server "FTWP1IEGBOV01\GBOSQL1" reported an error. Authentication failed.
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "SQLNCLI" for linked server "FTWP1IEGBOV01\GBOSQL1".


Why does it say that at the destination link server authorization has failed? When the destination user I mapped while creating the Linked server has sysadmin server role?

Any Ideas?
Post #1243948
Posted Monday, January 30, 2012 3:16 PM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 2:54 PM
Points: 1,899, Visits: 18,894
further down the "security tab" page are other options

have you tried selecting radio button for "be made using this security context" and entering the the remote login details?


__________________________________________________________________
you can lead a user to data....but you cannot make them think !
__________________________________________________________________
Post #1243955
Posted Monday, January 30, 2012 3:47 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Sunday, January 13, 2013 11:24 PM
Points: 93, Visits: 259
Thank guys Its Solved. This Web Site Is An Asset.
Post #1243970
Posted Monday, January 30, 2012 9:18 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Sunday, January 13, 2013 11:24 PM
Points: 93, Visits: 259
I have added some servers successfully But I have a problem adding one particular server. The error message I get is this


TITLE: Microsoft SQL Server Management Studio
------------------------------

"The linked server has been created but failed a connection test. Do you want to keep the linked server?"

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

SQL Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].
OLE DB provider "SQLNCLI" for linked server "FTWP1IEBVWV01\BILLING" returned message "Login timeout expired".
OLE DB provider "SQLNCLI" for linked server "FTWP1IEBVWV01\BILLING" returned message "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.". (Microsoft SQL Server, Error: 65535)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.4035&EvtSrc=MSSQLServer&EvtID=65535&LinkId=20476

------------------------------
BUTTONS:

&Yes
&No
------------------------------



Any Ideas what might be causig this?
Post #1244027
Posted Tuesday, January 31, 2012 12:55 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, August 5, 2014 2:55 AM
Points: 1,101, Visits: 5,280
na1774 (1/30/2012)
...this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections."...


Enable remote connection to this server.

By default remote connection is disabled.
Post #1244080
Posted Tuesday, January 31, 2012 7:14 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Sunday, January 13, 2013 11:24 PM
Points: 93, Visits: 259
Hi Thank for the reply.....

I went to the Surface Area Config Manage----->Remote Connections --->the option selected is "Using Both TCP/IP and named pipes".

Even Then I am still not able to add that server as Linked server from source machine. I get the same error as mentioned above.

Can u help what might be causing this?

Post #1244359
Posted Tuesday, January 31, 2012 7:31 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, March 4, 2014 10:03 AM
Points: 1,106, Visits: 1,334
Sorry if this has already been stated but what user are you using (AD or SQL)?
Also where are you trying to create the LS (on the server or remotely)?
Are you able to RDP to the server to create locally?


Adam Zacks

-------------------------------------------

Be Nice, Or Leave
Post #1244376
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse