How to set ApplicationIntent=ReadOnly in Connection String for SharePoint 2013

SharePoint 2013 and SQL Server 2012 allows us some additional options to create HA and DR sites through AlwaysOn Availablibity Groups and Listeners.  Problem that I'm having is that I have a DR site that is at a different location.  Microsoft
recommends not to stretch the farm across different locations, so I've created a separate farm for DR.  I have my content database in an Availability Group so that is Asynchronously commits data changes across the 2 locations.  My DR site
connects to the content database through a Listener. 
Since the DR site is connecting to the content database through the Listener, it is connecting the primary replica.  In order to connect to the Read Only secondary replica, I need to add "ApplicationIntent=ReadOnly"
to the connection string.  How do you do that?

It supports a secondary being Readable, that is all it is telling you. It does not support, nor implement, Read-Intent. This is expected behavior. You can look at the Conn Strings via PowerShell, of course:
$db = get-spdatabase | where {$_.TypeName -like "*Config*"}
$db.DatabaseConnectionString
Data Source=SPSQL;Initial Catalog=Config;Integrated Security=True;Enlist=False;
Pooling=True;Min Pool Size=0;Max Pool Size=100;Connect Timeout=15
Trevor Seward
Follow or contact me at...
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Similar Messages

  • How to dynamically set connection string for report in C# code?

    Hi,
    I have installed CRVS2010. I have created new Crystal Report WPF Application and new report. I would like to set connection string for report in code dynamically.
    Is this possible?
    Thanks
    Ivana

    Lots of posts in this forum on how to set database connections. WPF should not be a consideration as it's just a viewer. The report engine is still the same. Search these forums. Use the search box at the top right corner of this page. Look at samples here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Note that none of the samples above are using WPF, but like I said, the WPF is just a different viewer and will not impact how the report engine logs on to a database. (I think of it as a gray car vs. a red car. Same engine, just the color is different)
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How to change connection string for a form created with b1de

    Hi all
    i've created a form using the Code Generator tool ob B1DE
    My question is how can i set the connection string to a different server and database. doing so after the creation wizard has finished?

    Hi,
    Why do you need to change the connection string? What are you calling "connection string for a form"???
    The only connection string I now about is the one used to connect to the UI API... and this one is fixed for all apps in debug mode and given as parameter when your addon is registered in B1.
    The connection string is filled in the code of your generated addon.
    Please go to the main class of your addon, in the main method you have the following code where the connection string is filled either with the command line parameters (release mode) or with the fixed value given by SAP. This code doesn't need to be changed...
            public static void Main()
                int retCode = 0;
                string connStr = "";
                bool diRequired = true;
                // CHANGE ADDON IDENTIFIER BEFORE RELEASING TO CUSTOMER (Solution Identifier)
                string addOnIdentifierStr = "";
                if ((System.Environment.GetCommandLineArgs().Length == 1)) {
                    connStr = B1Connections.connStr;
                else {
                    connStr = System.Environment.GetCommandLineArgs().GetValue(1).ToString();
                try {
                    // INIT CONNECTIONS
                    retCode = B1Connections.Init(connStr, addOnIdentifierStr, diRequired);
    Regards
    Trinidad.

  • How to establish this kind of connection string

    I am using the model: Multiple Embedded Application Clients Accessing Remote Database. There is a database named ServerDB, a DSN named ServerDSN and a muti-user service on the server machine. Plus, there is a DSN named ClientDSN which will route to server machine on the client machine. Then how to establish the connection string for a client application under this condition in C# language? Thanks. It seems that the following connection model in the document doesn't work: OracleConnection conn = new OracleConnection
    ("DataDirectory=\\orace;Database=polite;DSN=*;uid=system;pwd=manager"); I don't know how to fill those parameters.
    I also tried this: conn = new OracleConnection("DSN=ClientDSN;UID=System;PWD=Manager"); But still failed.
    Thanks very much if someone can help me. Urgent problem.
    Message was edited by:
    user474792

    You can read section 1.4.3 in dev.pdf of Oracle Lite for more detail. There is a model like above.
    There is no main database like Oracle server. And there is only one odb file for all the clients. On every client machine, there is a DSN which include the information about server machine.
    I think you'd better read the document first, thanks.
    Hope you can continue to discuss with me, ^_^

  • Report Designer odbc connection string for data source using a parameter

    I am using stand alone report designer 3 for the present and have a question/problem regarding the odbc connection string for MySQL when setting up the data-source
    I need to be able to enter a parameter which is the database name i.e. BOE-201401 or say BOE-201312 etc  from a list of databases the user can choose from.
    at present the odbc connection string points to BOE-201402
    the connection string is at present  Dsn=Development Server for MYsql;description=MYSQL;server=ldndw01;database=BOE-201402;port=3306
    my parameter has the name BOE_DATABASE
    and in an expression it is  as such
    =Parameters!BOE_DATABASE.Value
    I want to point the datasource for the report to the parameter value before the user sees the report.

    Hi Leslie,
    Based on your description, we want to design a report with a dynamic DataSource connection string. There are the basic steps below for your reference:
    Create report with static database.
    Change data source to report parameter.
    Send new database connection string as a report parameter. 
    More detail information, please refer to the following blog: Dynamic Database in SSRS 2008.
    http://haseebmukhtar.wordpress.com/2011/11/09/dynamic-database-in-ssrs-2008/
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to set up and configure AirPort Express for AirPlay and iTunes

    Saw somewhere that supposedly there were some apple written guidlines on the above topic. I have searched all over for them. Anyone know where I can get a copy to read through. Just trying to educate myself a bit and sety up another room with access to itunes, radio, etc with high quality speakers and amp off my express.

    Here you go ...
    How to set up and configure AirPort Express for AirPlay and iTunes

  • How to set default User preferences in Analyzer for all users

    How to set default User preferences in Analyzer for all users<BR><BR>Hi,<BR><BR>I would like to set some settings in Analyzer as default for all users. For example:<BR>1. Display | Char<BR>2. right mouse click on char | Chart Properties<BR>3. Axes tab<BR>4. "Format: Currency" i would like to change to "Format: Number".<BR><BR>How to set default values to all users? Is this possible?<BR><BR>Thanks,<BR>Grofaty

    I'm pretty sure higher access superceedes, so you could set up a group with no actual access, just to get the preferences working, then their individual security will dictate what they can do. I haven't tested this fully, but I beleive this is how it will work.<BR>As far as setting the preferences, go into the admin console and right click on the group, then select Preferences. To apply the group preferences to a user, add the user to the group, then right click on the user, select preferences and from the upper left corner, use the drop down to select the active preference, in this case, it will be the group you created and added them to.<BR><BR>HTH

  • Save Query - An error occurred while creating connection strings for the query

    A workbook trying to edit and reload I get the following error "Save Query - An error occurred while creating connection strings for the query" No Power Pivot data model or anything.

    I am getting the same error when editing a Power Query in an Excel spreadsheet. It happens when I change a Group By step to do a Sum instead of Count Rows.

  • How to set user preferred timezone in OBIEE for all objects.

    How to set user preferred timezone in OBIEE for all objects based on users TZ(may be from @{session.timeZone}). without changing My Account -> Preferences

    Check
    Time Zone Specification from http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T481157.htm#4535403
    just in case https://blogs.oracle.com/xmlpublisher/entry/how_to_keep_your_dates_from_go

  • What are the username, password and connect string for Designer 6.1.1?

    So that we may better diagnose DOWNLOAD problems, please provide the following information.
    - Server name
    - Filename
    Oracle designer6.1.1
    - Date/Time
    - Browser + Version
    IE 6.0
    - O/S + Version
    Win 98
    - Error Msg
    ORA-12154:TNS:could not resolve service name.
    RME-00220:Fail to connect to repository
    These error messages were shown after I entered system, manager and internal, respectively.

    Hi YungJen Chen,
    There is no general username, password and connect string for
    Designer 6i Release 4.1.1.
    First, you install the client tools using the Installer. See also the
    Designer Installation Guide, Chapter 1, 'Client Side installation'.
    Second, you install the repository into an existing database, using
    the Designer Installation Guide, Chapter 2, 'Server-side installation,
    migration and upgrade'.
    The Installation Guide provides step by step instructions on what
    users you need to create for various purposes. Any database users
    you may need to use such as System or Sys will use the password
    given when you installed the database, or whatever passowrd you
    changed it to since.
    The Installation Guide is available as part of the download, or from
    your Windows Start Menu once the Designer client tools are installed
    or from the Designer Documentation page here on OTN.
    Hope this helps. Regards,
    Dominic Battiston
    Designer/JDeveloper Product Management

  • What are the username, password, and connect string for Designer6i R4.1.1

    As the title, I tried system, manager and internal.
    But it did not work out.
    Thank you for your help.

    Hi YungJen Chen,
    There is no general username, password and connect string for
    Designer 6i Release 4.1.1.
    First, you install the client tools using the Installer. See also the
    Designer Installation Guide, Chapter 1, 'Client Side installation'.
    Second, you install the repository into an existing database, using
    the Designer Installation Guide, Chapter 2, 'Server-side installation,
    migration and upgrade'.
    The Installation Guide provides step by step instructions on what
    users you need to create for various purposes. Any database users
    you may need to use such as System or Sys will use the password
    given when you installed the database, or whatever passowrd you
    changed it to since.
    The Installation Guide is available as part of the download, or from
    your Windows Start Menu once the Designer client tools are installed
    or from the Designer Documentation page here on OTN.
    Hope this helps. Regards,
    Dominic Battiston
    Designer/JDeveloper Product Management

  • How to set and resent reconcilation a/c for Assent a/c

    hi
    how to set and resent reconcilation a/c for Assent a/c
    amk

    You are permitted to post the recon account undercertain special circumstances :
    USe the transaction codes OAMK and OASV.
    Kindly read the SAP on line documentation before making a postings directly to the recon account.
    Definition of the Reconciliation Accounts
    You are not allowed to manually post to the reconciliation accounts for Asset Accounting in Financial Accounting. Normally, you designate the corresponding General Ledger accounts in Financial Accounting as reconciliation accounts. This change, however, can no longer be made in Financial Accounting, once these accounts already have balances from the legacy data transfer. However, you can use a special report to assign these accounts the status of reconciliation accounts in Financial Accounting (in Customizing for Asset Accounting, choose Preparing for Production Startup ® Production Startup ® Set Reconciliation Accounts).
    There is another report for removing this specification (Reset Reconciliation Accounts).
    Subsequent Correction Postings to Reconciliation Accounts
    Suppose you have already defined the asset G/L accounts in Financial Accounting as reconciliation accounts, but still need to transfer balances to these accounts, or make corrections. You can make correction postings to these reconciliation accounts with a special posting transaction in Customizing for Asset Accounting (Transfer Balances), using posting key 40 or 50. You can only postings to those accounts in a company code with implementation status (Customizing for Asset Accounting, choose Preparing for Production Startup ® Production Startup ® Activate Company Code).

  • Hi expert,Incorrect connection string for addon

    hi expert
    I am getting error when connect  my addon in client pc.
    my addon working fine in server at client side.
    but in client i m getting error "Incorrect connection string for addon".in my addon i am using crystal report and two sap b1 user form. thanks in adva.
    regards
    Rajkumar Gupta
    Edited by: Rajkumar Gupta on May 23, 2009 12:49 PM

    Hi Rajkumar,
    Sometimes this error message is related to the UI server. Please see note 808354 or 852031 and see if this has any effect.
    If not, please post up a code sample so we can take a look,
    Regards,
    Niall

  • How to set a minimum width and height for a stage or scene?

    Hello,
    Does anyone how to set a minimum width and height for a stage or scene?
    I tried listening for width/height property value changes and then adjust the width/height if necessary, but that causes unpleasant flickering of the window.
    In JavaFX 2.1 beta SDK for Mac OS, the Stage class has setMinWidth() and setMinHeight() functions which work very well.
    I'm wondering what's the equivalent way to do that when using the FX SDK for Windows.
    Any help is appreciated!
    Thanks.

    I was wondering how to enforce a minimum stage size with JavaFX 2.0.3.The same flickering way you are currently doing it. See: http://javafx-jira.kenai.com/browse/RT-15200 "Need a way to set the minimum size of a window"

  • Without to change the setting.how to set the decimal place to 7 for an UDF.

    Without to change the setting, how to set the decimal place to 7 for an UDF?

    Hi
    Once you create a UDF it will automatically be binded to the data source of data type that you gave at the time of creating UDF.
    So i think you can not set the decimal places without changing the setting in display parameters.
    i am not sure whether it will work or not one thing you can try is that create it as a alphanumeric data type and convert your decimal value to sting and then assign it to UDF,While retrieving for any manipulation you convert it as decimal.
    Hope it helps you
    Regards
    Vishnu

Maybe you are looking for

  • Help with formatting parameters in html output?

    Hi -- I would like to use a style sheet to adjust the way that javadoc displays lists of parameters below each method. In the HTML output, the code around the parameter name and description looks like this: <dd><code>filterContainers</code> - True if

  • R4 EA - Connecting to Oracle 11.1

    What are the correct JDBC drivers to connect to Oracle 11.1 from SQL Developer 4.0?  I can connect to a local Oracle Express DB and a remote Oracle 11.2 DB but when connecting to an 11.1 DB I get: An error was encountered performing the requested ope

  • What are some G4 apps?

    Before the Intel switch there were lot's of G4 apps. I just can't seem to find any though! Can anybody point me in the direction of them? I don't want any sites like cnet and and the pirate bay. Thanks

  • 4 Questions About Iphoto- Experts Please Reply

    Hi, im still new to iphoto 11 and mac in general, so im hoping I will find a few people on here who can bring me up to speed fast on a few things that Im having problems with. I imported some photos from my digital camera ( then wiped them off my cam

  • Master  images lost

    Hello everybody. I imported 350 RAW photos into Aperture 3 (my sister's wedding!) and got an error message about not having enough space. I cleared some stuff and carried on importing: it looked like all my photographs imported and I deleted the memo