SQL Server 2012 Always ON routing to particular server based on User Name

I have configured SQL Server 2012 with AlwaysON availability groups. I could route my connections to Secondary node when I put the applicationintent = readonly on the connection string. However I would like to route all of my connections from particular
user name to my read only node. How can I accomplish this without changing connection string (Reason is I would like to be able to route connections for read only query to some older application client that doesn't support applicationintent parameter).

Hello,
There is nothing built in that will allow you to dynamically re-route connections based on usernames. This may be achieved outside of SQL Server through some sort of network appliance, but I can't say for sure.
Would it be possible to upgrade the SQL Client (to 2012+) for the old application and then change the connection string?
Sean Gallardy | Blog |
Twitter

Similar Messages

  • Microsoft SQL Server 2012 Performance Dashboard compatible with windows server 2012?

    Is Microsoft SQL Server 2012 Performance Dashboard compatible with Windows Server 2012? I only see Windows Server 2008r2 as the most recent version in the System Requirements list. Thanks!

    Is Microsoft SQL Server 2012 Performance Dashboard compatible with Windows Server 2012? I only see Windows Server 2008r2 as the most recent version in the System Requirements list. Thanks!
    As per download documents supported windows versions are
    Windows 7, Windows Server 2008 R2, Windows Server 2008 Service Pack 2, Windows Vista Service Pack 2.
    I cannot see any mention of Windows server 2012 in system requirements
    See System Requirements 
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Can we use SQL Server 2012 Web Edition as a witness server in mirroring?

    Hi All,
    Can we use SQL Server 2012 Web Edition as a witness server in mirroring?
    Grateful to your time and support. Regards, Shiva

    Hi All,
    Can we use SQL Server 2012 Web Edition as a witness server in mirroring?
    Grateful to your time and support. Regards, Shiva
    As Per BOL
    We strongly recommend that the witness reside on a separate computer from the partners. Database mirroring partners are supported only by SQL Server 2005 Standard and later versions and by SQL Server 2005 Enterprise Edition and later versions.
    Witnesses, in contrast, are also supported by SQL Server 2005 Workgroup and later versions and by SQL Server 2005 Express Edition and later versions. Except during an upgrade from an earlier version of SQL Server, the server instances in a
    mirroring session must all be running the same version of SQL Server. For example, a SQL Server 2005 witness is supported when you are upgrading from a SQL Server 2005 mirroring configuration but cannot be added to an existing or new SQL Server 2008 or later
    mirroring configuration.
    A witness can run on any reliable computer system that supports any of these editions of SQL Server. However, we recommend that every server instance that is used as a witness correspond to the minimum configuration that is required for the SQL Server Standard
    version that you are running. For more information about these requirements
    http://technet.microsoft.com/en-us/library/ms175191.aspx#SwHwRecommendations
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • SQL Server 2012 Always On ?

    Hi all,
    If the PB application uses a Sql Server 2012 database well configured for high availability ("Always On"), is there something to deal with in PowerBuilder or is it totally transparent on client side ?
    In previous version there were a FailOverPartner database parameter to fill but it seems useless with Sql Server 12 am I right ?
    Is there something about it in the Pb 12.6 documentation (we use 12.5.2) ?
    Or is it just not supported in 12.5.2 ?
    Thanks in advance

    Things depend upon what your expectations are when using the failover features of SQL Server2012.  You will not be able to have the somewhat seamless failover as you did using the FailOverPartner parameter (which is unfortunate) if you utilize failover clustering.  You will need to detect the original connection fail and then reconnect the transaction object.
    If you set up 2012 with a failover partner as in 2008R2 things should work the same (but we are talking about Microsoft however...)
    Matt

  • Good device to put Instance root directory on a SQL Server 2012 Always On Failover Cluster ?

    Hello, I'm currently testing SQL Server 2012 AlwaysOn Failover Cluster.
    I wonder if I installed it correctly : I installed the software on both server with the instance root directory set to a directory on a cluster shared module.
    The reason why I'm not sure is because, when I wanted to upgrade from SP1 to SP2, I wanted to do it first on the passive node, but it failed for most of the components it had to upgrade. So I first upgraded the active node then failover and upgraded the
    newly active node.
    I installed SQL Server this way because our system admins don't like us to install in on C:\ for their own reasons (maybe backup, or something ...)
    I'm pretty sure there is something wrong. What's your point ?
    Thanks in advance.

    >I wonder if I installed it correctly : I installed the software on both server with the instance root directory set to a directory on a cluster shared module.
    Nope. 
    SQL Server 2012 and earlier don't support data files on CSV volumes (SQL 2014 does).
    And for any version of SQL Server the SQL Server instance directory should not be on a clustered disk.  The Installation is local to each node, so should be on a non-clustered disk.  It may be supported to put the instances in different locations
    on the same clustered disk, but I wouldn't recommend it. 
    Installing the SQL Binaries on C:\ is fine.  If you have another local volume you can also install them there.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Can you minimize logging in a SSIS data flow when the database is in a SQL Server 2012 Always On Group?

    We have a file that we are loading 1st into a staging database then into a production database that contains over 5 million rows. Both databases belong to a SQL Server 2012 AG. We would like to minimize the logging in the staging database but t
    the same time keep the staging database in the AG. I know about fast load and setting the buffer settings in SSIS but I've read that this doesn't work on replicated tables and I am assuming that speaks to the AG.
    Are there any articles or someone's personal experiences with this type of scenario that could point us in the right direction and offset some of the initial data load into staging by minimizing logging?
    Thanks,
    Sue
    Sue

    Hi Sue,
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • SQL Server 2012 Always ON Users Sync

    Team,
    We have a development cluster which is configured on Windows Server 2012. Recently we had an issue where the cluster failover happened momentarily and the roles were interchanged wrt to AlwaysON. During this process users lost connectivity and upon further
    investigation, the users were orphaned on the other node and had to manually permission the users. Now that we have fixed the permission issue, please let me know whether this happens everytime whenever the cluster failover happens?
    Also would like to seek your help in any user sync script which I can incorporate for the issue to sync up the logins.
    SQL Version: 11.0.3000
    Any help on this is much appreciated.
    Regards,
    Sharath

    Hello,
    During this process users lost connectivity and upon further investigation, the users were orphaned on the other node and had to manually permission the users. Now that we have fixed the permission issue, please let me know whether this happens
    everytime whenever the cluster failover happens?
    This can be two fold.
    The first issue is the logins, as the logins exist on a server level and not a database level. If the logins don't exist, end users can't connect - simple.
    The second issue is orphaned users. When using Windows Authentication, the SID (security identifier) for the login is pulled from AD and stays the same inside AD boundaries. When using SQL Authentication, the SID changes and is not the same even if the login
    name is the same. In the situation you had, the logins may have existed but their SIDs are different and thus the user->login mapping is not correct, hence the orphaned user.
    In order to have this not happen, the SQL Logins must be created on all other replicas using the SID= optional argument of
    CREATE LOGIN statement. This ensures that the SID matches across all instances and orphaned users will not be an issue.
    I'm not sure how you fixed the orphaned users for the databases when they failed over, but chances are if you just re-linked them you're going to have the same issue as you did before when it fails again. You'll need to remove the logins and re-create them
    with the current login's SID that is working. You can find the SIDs in sys.sql_logins.
    Sean Gallardy | Blog | Microsoft Certified Master

  • Is it possible to install SQL Server 2012 Standard Edition on a Windows Server 2012 Standard Which is installed on a Virtual Machine that is created by Hyper-V?

    Hi
    I have recently bought a Virtual Machine from a data center and installed a Windows Server 2012 Standard Edition on it. As I tried to install the SQL Server 2012 Standard Edition, the data center administrator denied me to do this telling me it is not possible
    to install any licensed Microsoft software on a Windows installed on virtual machine created by Hyper-V. It was really strange for me! I wanna know if this is true.
    Thanks Everybody

    Hi Farid,
    For SQL server running on virtual server please refer to following article :
    http://blogs.technet.com/b/peeyusht/archive/2010/03/19/sql-licensing-under-virtualization.aspx
    In addition , for license issue we still recommend you to contact MS Activation Center:
    http://www.microsoft.com/licensing/existing-customers/activation-centers.aspx
    Best Regards,
    Elton Ji
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • Server Requirements - Always On in a single server? - Needs clustering even one server on another Data Center?

    Hello:
    I have been asking this questions to different forums and got different responses, so I wanted to know if asking to "Microsoft" will give me some good directions. (All in SQL Server 2012, including the OS)
    Question 1.- Always On "HAS" to be configured on a WSFC node? How about in a Single SQL Server. (NO Clustering)?.
    Question 2.- What about our mirroring processes configured and running in single servers, do we have to have WSFC installed before we can upgrade them to Always On?.
    Question 3.- In a case I have WSFC, and configure Always On, can my second or third replica reside in a single SQL Server? (No WSFC). What if I can not have Clustering in a DR Data Center? or I do have only VM's on the DR Center?
    Any help will be greatly appreciated.
    Thanks
    Oscar Campanini

    Hi Oscar,
    Please find the answers below.
    Question 1.- Always On "HAS" to be configured on a WSFC node? How about in a Single SQL Server. (NO Clustering)?.
                    - Yes . Each replica must be on a different node of a WSFC cluster. Without WSFC Cluster you cannot create always on as it relies on the failover capabilities of the
    cluster.
    Question 2.- What about our mirroring processes configured and running in single servers, do we have to have WSFC installed before we can upgrade them to Always On?.
                     - You cannot really upgrade a Database mirroring configuration to Always on , both are different and works differently. Again for Always on each participating
    replica must be on a WSFC cluster
    Question 3.- In a case I have WSFC, and configure Always On, can my second or third replica reside in a single SQL Server? (No WSFC). What if I can not have Clustering in a DR Data Center? or I do have only VM's on the DR Center?
                   - NO all replicas have to be in single nodes of WSFC cluster.
    Note: SQL Server doesnt have to be clustered.
    Consider the following scenario. YOu need to create Always on with a 3 node topology ie 1 Primary, I secondary and 1 readonly secondary.
    YOu need to have all these three nodes a part of Windows Server Failover Cluster. The clustering needs to be done only in the windows level. YOu can install standalone SQL Servers on all these 3 nodes and then condigure them as replica's in ALways on.
    Read these links to clear your questions -
    http://technet.microsoft.com/en-gb/sqlserver/gg490638.aspx
    http://technet.microsoft.com/en-us/library/hh510230(v=SQL.110).aspx
    http://technet.microsoft.com/en-us/library/ff878487(v=sql.110).aspx#ServerInstance
    Note: When I said Always ON I was reffering to Availability Groups.
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Server 2012 R2 Remote Desktop Connection Broker, Server Name Change.

    We have a server that was the connection broker, We changed its name and now the connection broker wont recognize the new name.  It continutes to want the old server.  Unfortunately we cant change it back.  Is there a fix for this? 
    We tried the powershell command but it doesnt see the old server name and errors out.

    Hi,
    Changing the name of a RD Connection Broker server is not supported.  If you are able to remove RD Connection Broker Role Service and install a new RDS deployment you may be able to get it working again (with perhaps a few registry fixes),
    but you will lose all of the configuration data associated with your deployment.  If you have a very basic RDS deployment it may not be a big deal to recreate the collections, configure settings, publish
    RemoteApps, etc., as they were before.
    Another potential option if you were able to temporarily change the name back would be to switch to HA mode with the database stored on the local server (in SQL Express), add another RDCB server, remove RDCB from the original (leaving the SQL Express database
    still functional), rename the server, add it back as a RDCB server, then remove RDCB from the second server.  I have not tried this procedure but at first glance I believe it should work, although it may be a bit complicated if you are not well versed
    with 2012 R2 RDS.
    If this is a small environment you may want to consider backing up any data on the servers and then reinstalling all of the RDS servers from scratch.  
    It is possible to manually fix the issue you are seeing by editing the RDMS database, editing the registries of all the RDS servers, and other related tasks, however, I would not suggest it due to the complexity.
    -TP

  • Server 2012 Hyper-V locks up Virtual Server for no reason.

    Server 2012 Hyper-V locks up virtual servers for no reason.
    This is a production server. I began building this server in February. I installed the server in November. 2012 server R1 is full of bugs!
    First who was the rocket scientist that decided that the TURN OFF function in Hyper-V means "Please turn off when the
    F*#@$*% you feel like it"? Idiots!
    I have a Supermicro server with perfect memory (for those who want to blame this on memory).
    It is running 12 Virtual Servers. Every morning, at a random time, at least 1 of the servers lock up solid. Sometimes as many as 5 decide that for no reason they all want to lock up. The servers that lock up may be 1 or more: a database server, a terminal
    server, an exchange server, a Windows 8.1 Ent VDI server, an IIS server, and or AD server. All 2012 R1.
    They are running all current Microsoft and other vendor patches and hardware updates.
    The only common denominator is the Hyper-V server.
    I cannot shut them down using the Hyper-V manager. I cannot turn them off. I have a hundred users standing by while I nicely ask them to turn off. The VM will turn off after 20 minutes and a lot of gentle coaxing.
    I cannot Kill the vmwp.exe process associated with the locked Virtual Machine.
    No .DMP are created. No events in the event viewers. No reason at all. When they restart, there is no indication of a problem.
    I ran two VMWP dumps and posted it here.
    www.a1bcs.com/hyper-vlockup.zipx
    Does anyone know why these are locking up?
    Thanks in advance for any help.
    Robert

    I'm not positive of the cause but I was able to stop the problems.
    It turned out that Network Load Balancing (NLB) between the two terminal servers and another between the two gateways was causing the lockups.
    This is a normal configuration and it should work. Especially since Microsoft has seen fit to remove the DRAIN USERS function from RDP as well as the LOCK OUT till next reboot function. JUST FYI these functions are still available at a DOS prompt
    by using the CHGLOGON command. But still the NLB also provides these functions.
    Anyhow, once I removed the NLB I haven't had the lockups anymore.
    That doesn't however change the fact that TURN OFF should mean TURN OFF not turn off please!
    Thanks again,
    Robert

  • Windows Server 2012 Foundation, in a Workgroup - "The server did not finish checking the license compliance. If the server is joined to a domain, make sure that the server can connect to a domain controller"...

    Every few days we see two dialogs with the following messages:
    Dialog 1, title: Check for Licensing Compliance is Incomplete
    The server did not finish checking the license compliance. If the server is joined to a domain, make sure that the server can connect to a domain controller.
    Dialog 2, title: Check for Licensing Compliance is Incomplete
    The server did not finish checking the license compliance. If the server is joined to a domain, make sure that the server can connect to a domain controller. If the license compliance check cannot be completed, the server will automatically shut
    down in 8 day(s) 23 hour(s) 0 minute(s).
    The server is not (and never has been) joined to a domain or had any DC roles installed. In fact its still connected to the default Workgroup.
    The server was configured in our office and never showed this message until it was installed on site. The main difference from what I can see is that when installed on site it was given a static IP address and does not have any DNS settings in the network
    adapter properties. 
    I have scoured a number of forums on this error but in almost every other instance of this error message the servers are connected to a Domain Controller and the solutions generally are linked to dis-joining and rejoining the domain. Unfortunately this is
    not an option for this scenario.
    I initially thought that adding some relevant DNS server IP address may resolve the issue, however, we have the exact same model server configured exactly the same running at a different site that does not experience this problem. This server also has no
    DNS server configured.
    I have seen a post that suggests turning off the servers "Foundation Checking", but I'm unsure how to do this.

    Thanks for your response Vivian.
    I can confirm that this server is not (and never has been) a member of any active directory, it is configured as a Workgroup server. It was initially configured on a network that does have an active directory, but was never joined to it. During that time it
    never displayed these messages.
    The server was moved into production on a different site and network and setup with a static IP address.The site network does have its own active directory but the server was not joined to it. It is whilst on this new network that these messages began.
    Since my original post DNS servers have been added and the Microsoft activation has been verified, however, the messages are still appearing.
    There are only 2 user accounts configured on this server. The local admin account and another local admin user.
    The remote desktop services roles have been installed but not yet configured. I don't think that has any bearing on this scenario though.
    The description of this error in the above "Introduction to Windows Server 2012 Foundation" link states:
    This error occurs when the server cannot finish checking the requirements for the root domain, forest trust configuration, or both. It usually happens when the server cannot connect to a domain controller. If the situation persists, the server will
    shut down 10 days after the first time the compliance check failed. Each time this error message occurs, it will state the actual time remaining before the server will shut down. If you restart the server after it has shut down because of non-compliance, the
    server will shut itself down again in 3 days.
    The above description leads me to the following question - In a Workgroup environment, does the server still try to contact a domain controller to establish a level of trust? If this is the case could it be that the server can no longer see the initial DC
    on its new network and this is what is triggering the messages?
    Am I clutching at straws here?

  • Installing Windows Server 2012 in Order to Use SharePoint Server and Develop in VS2012

    Hi.
    I need to install SharePoint Server so that I can work with SP Designer and have full options for development using VS2012.  Apparently, I also need to Install Windows Server 2012.  I would like to install and configure WS2012 in a virtual environment
    using the Hyper-V tools that come with Windows 8 Pro.  I'm a newbie when it comes to WS2012, and want to make sure I don't end up reformatting my Windows 8 hard drive or causing a similar event that would put me in a rubber room. 
    I downloaded the WS2012 image file, but am unsure how to proceed.  Can anyone give me some help as to how to get started?
    Thanks.
    Bugless

    Hi,
    If you have enabled the Hyper-V role on Windows 8 then you can create Windows Server 2012 VM's.  As Server 2012 has the Hyper-V tools build in by default there is no need to install them.
    So enable the Hyper-V role on Windows, Create a new VM in Hyper-V management console and connect the cd/dvd drive in the VM properties to the Windows Server 2012 setup ISO file. Start the VM and the Server 2012 setup. (during creating a VM you can also
    connect the cd/dvd drive to an ISO file)
    You might want to give to the Server 2012 VM 2 vCPU's and 2GB+ memory for performance. Also have a look the memory specs for VS2012 to see how much memory you should give to the VM.
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer
    MCSE:Server Infrastructure, MCSE:Desktop Infrastructure, MCSA Server 2012, Citrix CCIA & CCEE, Cisco CCNA, VMware VCP 3/4/5 Blog: http://www.citrix-guru.com and http://www.rds-support.eu Twitter: @dnyvandam

  • UDP when adding Server 2012 R2 to a Small Business Server 2003 Domain

    So we have a Small Business Server environment. Migrating to Windows Server 2012 R2 VMs. Currently the entire old SBS environment is still in existence. I've added 2nd 2012 DC, 2012 RDS VM, and a Server 2012 File Server as well that will host the UDPs.
    (Everything is working so far) BUT On the RDS Server I point the UDP Wizard to the share created on the File Server. The UDP does not appear to be created when logging into a desktop collection. The template VHDX is there but nothing else is created in the
    shared folder on the file server.
    I've stumbled upon people having issues with network shares and SMB versions. Do you think this could be an issue with the SMB client, etc since I'm adding them to an older domain? IF so how do I check or upgrade the client version? Will this cause the existing
    SBS 2003 users from seeing this network share or cause any other issues? I really didn't think it would be an issue because the File Server and the RDS Server are both 2012 R2.
    Thanks for any help!

    Hi,
    Thank you for posting in Windows Server Forum.
    Here letting you know to just recheck the configuration. If possible, try to remove the old UPD and collection; create new user under ADUC, Add that user to the same domain as of file server & RDS Server 2012 R2, then create a new share on your file server,
    create new collection, and provide the actual path of the share and after that it will create a template. Once user will login to the client system for 1st time there will be available UPD (vhdx file) for the users.
    For more detailed you can refer following article.
    Easier User Data Management with User Profile Disks in Windows Server 2012
    http://blogs.msdn.com/b/rds/archive/2012/11/13/easier-user-data-management-with-user-profile-disks-in-windows-server-2012.aspx
    Working with User Profile Disks on Session-Based Desktop Deployments
    http://www.virtualizationadmin.com/articles-tutorials/vdi-articles/general/working-with-user-profile-disks-on-session-based-desktop-deployments.html
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support

  • Server 2012 Group Policy Templates installed on Server 2008 R2

    Setup: 2 x Domain Controllers running Server 2K8 R2 SP1
    We are currently running our environment with IE9 and want to upgrade to IE11. However 2K8 R2 group policy doesnt support IE11 unless you upgrade your DC's to this version of IE. We are not going to deploy IE11 all at once but instead as we reimage or replace
    PC's. 
    My question is can install http://www.microsoft.com/en-us/download/details.aspx?id=36991 Server 2012 templates on 2008 R2 and have the ability to apply GP objects to both versions of the browser? Will it's possibly make some of the current GP's ineffective
    by erasing some settings?
    Maybe there is a better was for me to do this? Any help on this would be appreciated! Thanks in advance. 
    I will monitor this thread very closely and reply to any questions as soon as I can. Thanks!
    BCU

    Yes this can be done and its advisable to install the latest and greatest admx templates, please be aware that from IE10 upwards IE maintenance is deprecated and applied via a GPP, id advise you create a central store for your Admx and adml files if not
    already done so
    http://support.microsoft.com/kb/929841
    http://support.microsoft.com/kb/929841

Maybe you are looking for