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.

Similar Messages

  • 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]

  • 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]

  • Sharepoint Integrated SQL Reporting - Unable to connect to the server that is specified......

    This is driving me crazy.  I have Reporting services implemented on several sites in Sharepoint.  For some reason just one site refuses to work.  I see all the features are there.  I can create data sources. 
    When I try to create a report I get :
    "Unable to connect to the server that is specified in the URL,
    http://help.site.  Make sure that the server is running, the URL is correct, and you have permission to use the server"
    I'm using my domain admin account, I know know this works on every other site.  I know I haven't forgotten the general setup of the service. 
    The only difference is this site allows "anonymous" connections.  Has anyone heard of an issue about using anon and reporting services?  Either way I authenticate before I login but that doesn't have an effect.
    David Jenkins

    Thank you forums!!!!
    I found an existing thread. 
    http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/thread/d815b9fb-3431-490d-bd51-e7e21fcb788e
    1) Opened up IIS
    2) Expanded my intranet folder
    3) Expanded _vti_bin
    4) Highlighted "ReportServer"
    5) Double Clicked on Authentication
    6) Disabled "Anonymous Access" to the reporting folder itself
    7) Opened report builder 3.0 and typed in http://intranet.company.com" BOOM instant connection :D
    David Jenkins

  • 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.

  • This web site must be created on a server that is running Microsoft Sharepoint Foundation. Please choose another Location

    Hi all, I installed microsoft sharepoint designer 2010. It was working perfectly up until yesterday when I create a new site, it gave me an error that said " This web site must be created on a server that is running Microsoft Sharepoint Foundation.
    Please choose another Location " Now I can't create any sharepoint site and it freaks me out. I tried repairing, unistalling and reinstalling but still i get the same message. 

    You have to have SharePoint 2010, either SharePoint Foundation 2010 or SharePoint Server 2010, installed somewhere in order to be able to create SharePoint sites with SharePoint Designer 2010. SharePoint Designer 2010 is a client-side product, which is usually
    installed on end user machines and then used to connect to a server-side edition of SharePoint 2010 (either of the two I mentioned above) to modify the SharePoint sites hosted on that server-side product.
    It is possible to install SharePoint Foundation 2010 on a client operating system (Windows 7), but it is much more likely that a production environment will involve installing SharePoint Foundation 2010 or SharePoint Server 2010 on a server operating system
    (Windows Server 2008 or Windows Server 2008 R2) on a central server that can be accessed by multiple users.
    If you are looking to do testing, you can either install Foundation on Windows 7, or use a virtualization product such as Hyper-V, VMware Workstation, Virtual Box, to name a few, to build a virtual server hosting SharePoint.
    You aren't going to be able to create SharePoint sites with SPD until you have SharePoint Foundation 2010 or SharePoint Server 2010 somewhere for it to connect to, sorry.
    John
    MCTS: WSS v3, MOSS 2007, and SCOM 2007
    MCITP: Enterprise Project Management with Project Server 2007
    Now Available on Amazon - The SharePoint 2010 Disaster Recovery Guide. Also available -
    The SharePoint 2007 Disaster Recovery Guide.
    My blog: My Central Admin.

  • 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

  • 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".

  • Unable to connect to primary replica VM of the SQLSERVER availability group

    Hi,
    I have configured an always-on availability group on 2 SQLSERVER nodes and one WSFC node. All reside within the same cluster.
    I also configured Always-on Availability Group Listener. Have given the Load balanced endpoint for the 3 VM's as 1433 with direct server return enabled and have added rules for both the listener port and probe port 59999 in all the VM'S firewall. After
    I create the Listener in primary replica and bring it online I lose the connection to the VM. Have gone through all the Links referred in various blogs but I still have the issue and not able to connect through the Listener. I am not able to
    connect to the primary replica VM.
    Please provide some suggestions to resolve this error.
    Thanks and Regards,
    Divya 

    Hi Edwin,
    Thanks for your reply.
    My main issue is that once I create a Availability group listener and run the powershell script for configuring the cluster network with the IP address of the Cloud service hosting all the sqlserver VM's and the get the listener online. The moment I bring
    the listener online, I lose connection to that primary replica VM. Have not yet set the dependency for the Availability group.
    Then through the secondary replica's sqlserver's instance I connected to my primary replica's instance , added resource dependency to availability group and set the port in the listener.
    When I ping the listener through the primary and secondary replica it shows the correct IP of the listener but later give Request Time out error.
    I am not able to ping the listener through the domain controller machine.
    Regards,
    Divya

  • Cannot connect to SQL SERVER with Always on availability group listener name

    Hi everyone,
    I have setup always an availability group listener for sql server on port 1433, have opened the port in  firewall , remote connections are enabled in the sql server, but still I am not able to connect to the sqlserver instance with the help
    of the availability group listener name.
    I get the following error.
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.(provider:
    TCP Provider, error: 0 - The wait operation timed out.)"} System.Exception {System.Data.SqlClient.SqlException
    Have gone through several blogs for the solution but none of them helped.
    Please let me know if anyone has fixed the issue.
    Regards,
    Divya

    Prior to making SS connection, can you establish the connection with a networking tool?
    SS connectiviy trouble shooting:
    http://technet.microsoft.com/en-us/library/ms378845.aspx
    http://stackoverflow.com/questions/5919524/not-able-to-telnet-sql-port-1433-locally-or-remotely
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/227f431a-4274-4d95-b605-67541d78ef03/test-sql-connection-with-telnet?forum=sqldataaccess
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • POST fails on T5140 server.   POST shows errors about "Unable to create files".  Server won't boot

    All,
    Need any help that someone can provide.  Currently I have a T5140 server.   Yesterday it crashed unexpectedly. We were able to reboot the system and it come back up with the service light on.  Service light was indicating a memory DIMM problem.   We powered down the server to replace the memory modules that had service led showing for them.   After powering the system on, it never gets past POST now.  We attached a serial console to the ILOM and watch the post.   POST starts normally. Then we start to see messages about "unable to create files.  Finally POST gets to a point where it looks like it is finishing but hangs.   It hangs at the point where it say that it is initiating run level 3.  But it just sits there and never boots the system.  Any ideas?   Is this a motherboard issue that really cemented itself when the power was removed to the system?  Any help would be greatly appreciated.  We are stuck.
    Thanks.

    I have had this same issue, unfortunately you will need to place a service call for a field tech to come on-site and replace the failty DIMM. The T5140 WILL NOT BOOT if any one or more DIMMs fail to POST.
    The only partial solution is to disable the CPU that is connected to the bad DIMM so the system will successfully boot up in degraded mode. But I would not run the box like that for long.
    You need to call service a.s.a.p.

  • 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

  • ODBC error generating temp file: "Unable to create file buffer" Server 2008

    Guys:
    I have a 32 bit application that has been running for years with no problems under XP and MS Server 2003.
    To access the oracle DB we use MFC drivers and ODBC system datasources for Oracle 10g and 11g.
    We recently moved from MS Server 2003 to Server 2008 Standard Edition (32 bit).
    We also upgraded our DB from 10g to 11g R2.
    Now the application gets intermittent errors when accessing the database like the one below:
    "Unable to create file buffer"
    I looked this up on other forums and it seems to be a problem with the ODBC driver creating uniquely names temp files
    in the system temp folder. This was a documented problem some years ago and was fixed but now seems to have
    reared its ugly head for Server 2008.
    I'm not sure who the culprit is: 2008 32-bit or the 11g drivers.
    I just know that some of our transactions fail because ODBC has problems and this is killing us.
    As you see we are still running on a 32 bit OS and have created the ODBC DSNs using odbcad32.exe.
    The application connects to the DB and works MOST OF THE TIME but random transactions now fail because of this error.
    If I try to kill all of the *.tmp files from the windows temp directory it seems to solve the problem for a while but then the problem comes back rather quickly.
    Any help here would be apprciated.

    This may solve the issue: http://support.microsoft.com/kb/130719
    Don't just delete the offending file...it will be recreated eventually. Post a dummy file to prevent the error from reoccurring.
    My only question is why you put more info on database and ODBC versions here and not in your SR? I'll note this in your SR for ya ;)

  • Unable to create view links ....

    Hi,
    when i try to create a view link on my custom VO's ..im getting the following error:Ia m not using any standard VO's but still iam facing this issue
    Error occurred trying to activate the wizard pageView objects.
    Unable to find referenced object.
    Object=oracle.apps.ego.common.server.EgoChangeOrderCreationVO
    Owner=xxcus.apps.xo2c.sample.server.EgoChangeOrderCreationVOEx
    Exception:oracle.jbo.dt.objects.jboReferenceException
    I checked for these files on both the server and my local jdev.
    only the PosShipmentsCustomVO.xml is present both on the server and my local jdev.the .class file is not there on the server.
    Any help is greatly appreciated.
    Thanks

    Hello,
    Check the developer's gude for the following:
    Developing Business components -->Creating and modifying View Objects, view Links, Application Modules -->Ways to create View Link instances in the code.
    Do let us know if you are still stuck some where.
    Pavan K

Maybe you are looking for

  • How to get user name of user who uploaded to the Knowledge Directory?

    Greetings, How can I find out who uploaded a document to the Knowledge Directory? My users want to know who uploaded the documents they are viewing in the KD. I hope there is some option other then creating "Related Experts" for each folder. The Coll

  • Prob in list web part

    Hi I Created a  List in SharePoint 2010 and my requirement is how i can change the color of list column so that it can display on list  as a web part and its possible any out of box web part ?

  • About map a bpel process to web service?

    hi: Which activity in bpel should be exposed as a service to invoker?I always think they are receive and onMessage.But,in oracle PM,it looks not so.In oracle PM a asyn process exposed two services,one init the instance(begin receive),one is calback.T

  • Returns from consumption

    Hello! Does anybody have knowledge on returns from consumption? The more exact question is if it is possible to creata a return PO with account assignment category F?  Regards, Ileana

  • BPC EVAfter not continuing on drill down?

    Does anyone know how to make the EVAfter continue to work on a drill down?  I have 3 nested rows, with the EVAfter on the 2nd and 3rd nested rows, when I initially open the report and the report expands, my EVAfter is working fine, but once I start d