Trying to create a linked server to a remote 3rd party server using an AD group

I am the DBA at our organization so I have full authority to all of our local SQL Server databases but we have data in a remote 3rd party SQL Server database that is only read-only.  The 3rd party has granted the read only privileges to one of our AD
groups - let's call it mydomain\adgroup1.  I would like to create a linked server from one of our local SQL Servers to the remote database.  I'm not sure how to do this. 
I have set the AD group up as a login and a user in my local database.  When I try to create the link, I used the mydomain\adgroup1 as the local login and, since the same credentials exist in the remote server, I checked the impersonate box and click
OK but I get "mydomain\adgroup1 is not a valid login or you do not have permission".  Is it possible to create a linked server using an AD group?  As of now, we only have the AD group permissions in the remote database.  We could probably
request a single SQL Server account to be created on the remote side and we could create the same on our side, but we are trying to keep things as simple and transparent as possible (and we would really like to move more toward AD security and away
from individual users in the db).
Can anyone give me advice on how to get these two SQL Servers linked?

  From your description, you likely want to implement Windows authentication for linked server, which requires to implement Kerberos constrained delegation.
 I would recommend the following link to get started: 
How to Implement Kerberos Constrained Delegation with SQL Server 2008 (https://msdn.microsoft.com/en-us/library/ee191523%28SQL.100%29.aspx?f=255&MSPPError=-2147217396
  -Raul Garcia
   SQL Server Security
This posting is provided "AS IS" with no warranties, and confers no rights.

Similar Messages

  • How to create a Linked Server from SQL Server 2012 to Postgresql

    Hi, I am working on a third party application which is using Postgresql version 9 database and I am trying create a linked server in SQL Server 2012 using the below stored procedure.
    EXEC master.dbo.sp_addlinkedserver @server = N'LINKEDSERVERPOSTGRES', @srvproduct=N'PostgreSQL',
    @provider=N'MSDASQL', @provstr=N'Driver=PostgreSQL;uid=pguser;Server=pghost;database=pgdatabase;pwd=somepassword'
    Error: Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server.
    I have no clue if a jdbc provider exists in SQL Server to connect to Postgresql or what the right provider is? Could you please let me know if there's a workaround to achieve this.
    Thanks in advance............
    Ione

    See if this helps
    http://www.postgresonline.com/journal/archives/46-Setting-up-PostgreSQL-as-a-Linked-Server-in-Microsoft-SQL-Server-64-bit.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Can I create a linked server to this ODBC datasource (odbc driver by Progress OpenEdge) on Sql Server 2000 ?

    I installed the Progress OpenEdge ODBC driver for 32 bit database on my win7 workstation -- I used odbcad32.exe located at C:\Windows\SysWOW64 to configure the driver for 32 bit applications -- per the screen Shots here and I am able to connect to the datasource
    from Excel Query.
    I am able to connect to this ODBC datasource from Excel Query and see all the tables -- as in the screen shot.  I can also access this datasource from a C# app.
    Question:  if I can connect to this ODBC datasource from Excel -- does this mean I should be able to create a linked server to it?  I tried the following from SSMS Linked Serber Wizard on a Sql Server 2000 (I have used the Linked server wizard
    successfully in the past as well as linking with Tsql SPs).  This will at least create a mock Linked server on the Sql server 2000 (this does not work on sql server 2008 -- I tried), but when I try to view the catalogs -- I get the error in the screen
    shot below.  If the answer to my question is "YES" yes I should be able to create a linked server to this ODBC datasource what is the way to do this?  I added the UserID and Password in the Security tab, but I did not see where to add the
    port (4000).  What do I enter for the Product Name?  Can it be arbitrary or does it have to be something specific?
    Rich P

    Yes, you should be able to set up this as a linked server - from a 32-bit instance of SQL Server. That is, you can't use a 32-bit driver on 64-bit SQL Server. Now, since you have SQL 2000, I assume that this is a 32-bit instance. (But there was a 64-bit
    version for Itanium of SQL 2000.)
    For the Provider string, I would guess that you should enter something like
    Driver={Progress 11.3 OpenEdge Driver}
    just like you do in your application code.
    Basically, in the provider string, you specify your connection string, except that you take out the provider name, which is a separate parameter to sp_addlinkedserver. Since I know nothing about Progress, I can't give any specific details.
    The error message you get is somewhat puzzling, since this refers to SQLOLEDB which is the provider to access an SQL Server instance.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to create a linked server to SQL in Oracle?

    I am able to create a linked server to Oracle in SQL.. But I do not know the steps to create a linked server too SQL in Oracle.
    How to create a linked server to SQL in Oracle? After creating the linked server to SQL, I would like to create triggers in Oracle DB to insert records into SQL DB.

    There are 2 products in Oracle you can use to link to a MS SQl Server. The first one is for free and it is called Database Gateway for ODBC. With a suitable 3rd party ODBC driver you can connect to any foreign database. The second gateway is our commercial gateway and it is called Oracle Database Gateway for MS SQL Server. It is designed for MS SQl Server connections and more powerful then Dg4ODBC. It know how to map a lot of Oracle functions to SQL Server equivalents and you can also use it to directly call SQL Server procedures or functions. This dedicated SQL server gateway is also able to participate in distributed transactions.
    But again, this is a commercial gateway and you have to purchase a license for that second gateway, the Database Gateway for MS SQl Server.
    - Klaus

  • How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?

    How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?
    Let's say the SQL Server and Oracle Database are in the same Company Internet Network.
    I have the code, but I do not know how to use it. Such as what is System DSN Name? Where could I get it. What does it look like?
    Do I need to install any Oracle Client Software in order to link from SQL Server to Oracle? Or SQL Server has the built-in drivers installed already that I can directly create a Linked Server from SQL Server to Oracle?
    I need to know details. Thanks.
    USE master
    go
    EXEC sp_addlinkedserver
         @server  = '{Linked Server Name}'
        ,@srvproduct = '{System DSN Name}'
        ,@provider  = 'MSDASQL'
        ,@datasrc  = '{System DSN Name}'
    EXEC sp_addlinkedsrvlogin
         @rmtsrvname = '{Linked Server Name}'
        ,@useself  = 'False'
        ,@locallogin = NULL
        ,@rmtuser  = '{Oracle User Name}'
        ,@rmtpassword = '{Oracle User Password}'

    You need an OLE DB provider for Oracle. There is one that ships with Windows, but it only supports very old versions of Oracle. Oracle has an OLE DB provider that you can use. I don't know if it's part of Oracle Client or how it is bundled.
    You should not use MSDASQL or any DSN.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • "Operation is not valid due to the current state of the object" error when trying to create a link for a shared folder in OneDrive

    I'm trying to share a folder in OneDrive with another user in my organization, and create a link so that people outside of the company can see the folder. Whenever I try to create a link I get an error that says: "Couldn't create the link sorry something
    went wrong operation is not valid due to the current state of the object" How do I resolve this?

    Hi,
    Sorry for replying late and I noticed that you posted another thread in this forum:
    http://social.technet.microsoft.com/Forums/en-US/2b8c6f54-9c59-4b37-b28f-1d49a1b7913b/operation-is-not-valid-due-to-the-current-state-of-the-object-error-when-trying-to-create-a-link?forum=officeitpro
    I've replied and kindly refer to it to see if it is helpful.
    Regards,
    Melon Chen
    TechNet Community Support

  • Unable to create a linked server that points to an availability group listener.

    I don't even know if this scenarios is supported or not, I can't find any documentation on it.
    I have a couple SQL 2012 servers setup using AlwaysOn Availability Groups.  The listener (SQLAG1) is setup and working as expected with applications.   The 2 machines are in different subnets, so we are using the MultiSubnetFailover=True on the
    connection strings to ensure that failover works. 
    From an SQL 2014 box I want to create a linked server that points at the Listener.   I'm able create the linked server, but it appears like sql server is not using the MultiSubnetFailover=True and it fails to connect.  Here is what I used to create
    the linked server;
    EXEC sp_addlinkedserver
    @server = N'SQLAG1',
    @srvproduct = N'SQL2012',
    @provider = N'SQLNCLI11',
    @datasrc = N'SQLAG1',
    @provstr = N'Provider=SQLNCLI11.1;Data Source=SQLAG1;MultiSubNetFailover=True',
    @catalog = NULL
    GO
    Do anyone know if this is supported?  if so what it proper way to create the linked server?  
    Thanks!!!

    Thank you.   
    OLE DB in the SQL Server Native Client does
    not support the MultiSubnetFailover keyword.

  • Have trouble query after creating a linked server from SQL Server 2008 to EXCEL 2007

    I created a linked server from SQL Server 2008 Management Studio Express to an EXCEL 2007 workbook using:
    sp_addlinkedserver @server='LSERVER_EX0', @srvproduct='EXCELDATA', @provider='Microsoft.ACE.OLEDB.12.0', @datasrc='C:\Temp\abc.xlsx', @provstr='EXCEL 12.0'
    The linked server LSERVER_EX0 was created, but I cannot see any table(excel sheet), and when i ran the following to query tables,
    sp_tables_ex 'LSERVER_EX0'
    I got:Cannot obtain the schema rowset "DBSCHEMA_TABLES" for OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LSERVER_EX0". The provider supports the interface, but returns a failure code when it is used.
    Any hint why?
    on another note, i was able to import the EXCEL sheets using the Import and Export Data wizard, but i cannot control the column data type and size in this way.

    Open management studio, goto "Server Objects"->"Linked Servers"->Providers, select the provider you use, right click it and in provider options, check "Allow inprocess".

  • Linked server using ASEOLEDB

    Hello.
    Has anyone managed to get a linked server working between SQL 2008R2 and Sybase ASE 15.7 using the SAP/Sybase OLE DB driver and not using an ODBC DSN?
    I've tried what seems like every combination of parameters to create the linked server both through the GUI and using sp_addlinkedserver, all to no avail.
    If you could supply an example sp_addlinkedserver call that would be really helpful.
    Thanks.

    Hi Hedgehog,
    According to your description, you need to create a linked server to Sybase by using ASE OLEDB provider, right?
    If in this case, you need to install the DataDirect OLEDB Provider for Sybase on the machine running SQL Server.  And you need to create and configure a Data Source before creating a linked server. Here is a blog which describes how to create a linked
    server in SQL Server Sybase ASEdatabase using OLEDB provider.
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2009/11/12/how-to-create-a-linked-server-in-sql-server-2005-for-sybase-ase-12-5-database-using-datadirect-s-odbc-driver-and-oledb-provider.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Linked server using kerberos working fine then after inacitive for 10 minutes start receiving the anonymous logon error

    Linked server using kerberos working fine but after leaving the session inactive for 10 minutes is startin to fall down to ntlm and receive the anonymous logon error

    we are connecting to  SQL mgmt studio app published on citrix, using  Windows authentication and Kerberos to forward the credentials to the linked servers and avoid the double hop issue, that part is working fine,  we already have the Constrained
    delegation, SPNs and Active directory settings for the Service accounts and the authentication is working, we can connect to the linked servers without errors, it's only whe the Session get idle when we faced the issue, the citrix team already have verifyed
    any timeout setting and they mentioned there is no 10 minute timout setting anywhere,  we also looked at the Kerberos AD Global policy settings to see if maybe the kerberos service ticket was expiring, but the configured values are  Maximum lifetime
    for service ticket 600 minutes  Maximum lifetime for user ticket 10 hours  Maximum lifetime for user ticket renewal 7 days, if you have any other suggestion please let me know.

  • Linked server using kerberos working fine then after inactive for 10 minutes start receiving the anonymous logon error

    Linked server using kerberos working fine then after inactive for 10 minutes start receiving the anonymous logon error

    Hi,
    This Could be  a double hop problem or some thing could have gone wrong with your SPN
    This could also be non trusted Service Account under which your SQL Server is running
    Check the following links
    http://blogs.technet.com/b/askds/archive/2008/06/13/understanding-kerberos-double-hop.aspx
    http://blogs.msdn.com/b/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx
    https://technet.microsoft.com/en-us/library/cc739474(v=ws.10).aspx
    Hope this helps
    Thanks
    Bhanu

  • Error when creating a linked server to IBM iSeries AS/400

    I am migrating databases from SQL Standard 2005 (32 bit) to SQL Standard
    2012 (64 bit) and getting errors when I create the needed Linked Servers to our IBM as/400. I scripted the as400 linked server from the 2005 server and created it on the 2012 server:
    EXEC master.dbo.sp_addlinkedserver @server = N'AS400', @srvproduct=N'DB2 UDB for iSeries', @provider=N'MSDASQL', @datasrc=N'AS400'
    EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'AS400',@useself=N'False',@locallogin=NULL,@rmtuser=N'USER_NAME',@rmtpassword='PSSWD'
    (plus various sp_serveroptions)
    I then verified that the MSDASQL Provider "Allow Inprocess" was checked and the Linked Server is listed as using the provider but when I try to view the objects under the "AS400" Linked Server I get an error saying: Cannot initialize the
    data source object of OLE DB provider "MSDASQL" for linked server "AS400". (Microsoft SQL Server, Error: 7303)
    I was told to download and install OLEDB provider for DB2.  I downloaded DB2OLEDBV4 but when I try to install it I try to install it I get a OK Box saying: "Microsoft OLE DB Provider for DB2 requires the Microsoft SQL Server 2008 or later
    version.  Ensure that this version is fullfilled before installing Microsoft OLE DB Provider for DB2." when I click OK, I get "Setup was interrupted before Microsoft OLE DB Provider for DB2 could be completely installed" and the install
    exists.  I am installing on SQL 2012!
    Can anyone please advise...

    Hi,
    Based on your description, we know that you got an error when you installed the OLEDB provider for DB2. Microsoft OLE DB Provider for DB2 V4.0 is needed If you use SQL Server 2008 R2 or SQL Server 2012 to connect to IBM DB2 databases.When you install the
    OLEDB provider for DB2 V4.0, we need to make sure that the system meets the following requirements:
    • Windows Server 2008 R2 SP1 or Windows 7 SP1 or Windows Server 2008 SP2.
    • Microsoft SQL Server 2012 (Enterprise, Developer or Evaluation Edition) or Microsoft SQL Server 2008 R2 (Datacenter, Enterprise, Developer or Evaluation Edition) is installed.
    • Microsoft .NET Framework 4.0.             
    As your post,it seems that you have installed SQL Server 2012 Standard Edition,this edition is not supported by Microsoft OLEDB Provider for DB2 V4.0. I recommend you to upgrade the standard edition to enterprise edition and reinstall the OLEDB Provider.You
    can try this method and if you have any questions,please feel free to revert.
    For more detailed information, you can review the following link.http://msdn.microsoft.com/en-us/library/hh873008(v=sql.110).aspx  
    Thanks
    Lydia Zhang

  • To create database link to connect to remote database

    Hi all
    I am using 10g with apex4.
    My apex application is running on our server.
    I need to connect to a remote server to get data from there.for that i need to create a database link from apex.
    When i tried to create a database link from apex sql commands window it is showing insufficient privilages.
    So i created one database link from back end but it is not accessible from apex...
    can some one help me in this...
    its urgent.....
    thanks in advance

    Hi,
    You need create database link to schema that is assigned to your workspace (application parsing schema)
    Schema need have CREATE DATABASE LINK system privilege.
    Regards,
    Jari
    Edited by: jarola on Aug 1, 2011 3:34 PM
    See documentation
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/advnc.htm#BABBFICH

  • Creating file in server using 10g database and forms6i(unix operating syst

    I want to create a text file in server using(thin client)
    d2k 6i
    open 'a' mode
    then line by line put
    fil_name like /a1/a2/a3.txt
    Thanks
    Reena

    You might use the UTL_FILE-Package to create a file on the database server. But you must be aware of the following fact : UTL_FILE_DIR parameter must be set on the instance level pointing to the directory where you write the files on. The files will be owned by user "oracle".

  • MS SQLServer Linked Server using Instant Client?

    Does anyone have an example of setting up a linked server in SQLServer using instant client ODBC?

    user11273096 wrote:
    Hi All,
    PLease need help urgently....
    Have issue of connecting to a remote oracle server after following several tutorial online from step A-Z. http://www.dbatoolz.com/t/installing-oracle-instantclient-basic-and-instantclient-sqlplus-on-win32.html
    I am the DBA that installed the remote oracle too so every information are right.Either you are mistaken or Oracle is in error.
    I doubt Oracle mis-reports reality!
    >
    These are the errors: ORA-12154 or ORA-12560 TNS: protocol adapter error.ORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
    ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
    The lookup operation fails because the name provided can NOT be resolved to any remote DB.
    The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
    The most frequent cause for the ORA-12154 error is when the connection alias can not be found in tnsnames.ora.
    The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.

Maybe you are looking for

  • Since Monday, Firefox times out when I search the web and I have not changed anything with the system.

    I was able to search the web as late as Sunday. But since Monday I am unable to. I have changed nothing. Bookmarks, email, Facebook work. Can search on laptop using the router, so internet connection is fine. The new google search on FB doesn't work

  • Lexical Parameter in Matrix Report

    Hi , I am faced a problem when i used lexical Parameter in Matrix Report. I design Query and Report in Group Above Mode The Lexical Parameter Show the Values in the Field but when I make This Report in Matrix then This Lexical Parameter Showes The Va

  • SQL Join in PHP

    Dear all I have two tables in my database like the following Table A Code Narr 1 Code1 2 Code2 3 Code3 4 Code4 Table B Code Data 2 Data1 3 Data2 By joining I want to display the matching records. But I want to display all the Codes from Table A. How

  • Tiff files

    Hi, Hope this is the right forum to put this. I need to analyse a couple of tiff files - ie. get use them as arrays, and I think I need to use the API "com.sun....etc". Does anyone know where I might find this, or how to use it? When I try to import

  • Can I download the software to my tablet

    Can I download thephotoshop to my tablet