SQL Server Always On Multiple Instances

I have 2 instances on 2 server for each I have the default set up and then an instance called Test.
i.e. Server1, Server2 and Server1/Test, Server2/Test
I have set up "Always on", on the default instances, and have a database called Test on both so I know that is working correctly.
As soon as the Server1/Test and Server2/Test instances are set up it automatically picks up the Always On Group and Test database.
Is it possible to stop this as I would like to use the separate instance for different databases?
Thanks
Chris

UPDATE
Chris opened support case with Microsoft and fortunately it came to my notice. Based on our troubleshooting we found that it was connection to wrong instance via management studio "registered server"
After giving proper port, the issue was resolved.
Nice talking to you Chris. Thanks!
Balmukund Lakhani
Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
This posting is provided "AS IS" with no warranties, and confers no rights.
My Blog |
Team Blog | @Twitter
| Facebook
Author: SQL Server 2012 AlwaysOn -
Paperback, Kindle

Similar Messages

  • How do I set up Azure Sql Server to have multiple instances?

    Hi all;
    We are setting up a new SAAS application on Azure and while we have used Azure before, not at this level of multiple apps, etc.
    We plan to have both a web app and a cloud app in both a US and EU data center. They need to hit a common database because requests will go to the closest data center via traffic manager and a lot of the data works off of the customer table. And a customer
    (company) can have users in both the U.S. and E.U.
    Is there a way to set up Azure Sql Server so it has instances in both data centers, and Azure keeps them synchronized? If I understand sharding right, that is not what we need as someone hitting either data center could be requesting any of the data in the
    DB.
    thanks - dave
    What we did for the last 6 months -
    Made the world's coolest reporting & docgen system even more amazing

    Hi,
    As far as I am aware, when you set the webapp/cloudapp to connect to a database you will have to specify the connection string in the app. The app will hit the database which is mentioned in the  connection string you have specified. So it is not automatic
    or Traffic manager. You have full control over it as you can tell your app to connect whichever database you want.The database could be located in any region, however the you have to keep latency in mind as the app in US Datacenter could be calling the Database
    in EU, if that is  they way it is setup.
    You can have separate databases in each region and use Azure Data Sync
    to have the database synchronized, however please keep in mind that Azure Data Sync is in Preview.
    Regards,
    Mekh.

  • SQL Server Analysis Services (PowerPivot) instance returned the following error:

    SQL Server Analysis Services (PowerPivot) instance returned the following error: Error Code: 3241607174 Description: A connection corresponding to the embedded PowerPivot data was not found in the
    Excel workbook, file 'C:\Program Files\Microsoft SQL Server\MSAS10_50.POWERPIVOT\OLAP\Backup\Sandboxes\PowerPivotServiceApplication1\ReadOnlyExclusive-1096b00b-c487-46f9-afea-f717148863a8-Test_Sheet.xlsx'
    Hi Have Installed power pivot to and exsistinf farm standalone farm.
    What Should be the connection in the Excel fiile?
    Thanks
    Ravi
    Ravi

    Hi,
    According to your post, my understanding is that  you got an error with SQL Server Analysis Services.
    Did you have installed PowerPivot for Excel on a client machine and modeled a database as part of this workbook?
    The refresh in question is about refreshing the embedded Analysis Services database with data retrieved from the backend sources (defined when the database was originally modeled) and resaving the updated workbook. It should not be confused
    with Excel / Excel Services options to refresh the data connections in the workbook. That option is about refreshing data stored in Excel’s caches. With regards to PowerPivot, that would be refreshing from the embedded database, not the backend data from which
    the database was sourced. In summary, this feature will not work against a workbook which does not have an embedded database because there is no database to refresh. This is by design and should not be interpreted as indicating that there is something wrong
    with your system.
    More information:
    http://powerpivotgeek.com/2010/02/07/a-connection-corresponding-to-the-embedded-powerpivot-data-was-not-found-in-the-excel-workbook/
    There are some similar articles for your reference.
    http://technet.microsoft.com/en-us/library/ee210712(v=sql.105).aspx
    http://support.microsoft.com/kb/2761246
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/a324436c-9901-494e-9f9b-314399d65ccb/data-refresh-dont-work-for-serverhealthxlsx
    For the error “The data connection uses Windows Authentication and user credentials could not be delegated. The following connections failed to refresh”.
    There are multiple causes for this error message. The common factor behind all of them is that Excel Services cannot get a valid Windows user identity from a claims token in SharePoint.
    For more information:
    http://technet.microsoft.com/en-us/library/ff487975.aspx
    http://mmman.itgroove.net/2013/03/the-data-connection-uses-windows-authentication-and-user-credentials-could-not-be-delegated/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • JDBC - MS SQL Server 2005 with multible instances

    I want to get data from a Microsoft SQL Server via JDBC. We have such a scenario and till now it works fine. Now we have a second instance at the sql server and we want to connect to this instance. I've found the following MSD article:
    http://msdn2.microsoft.com/en-us/library/ms378428.aspx
    <b>SQL Server 2000 and SQL Server 2005 allow for the installation of multiple database instances per server. Each instance is identified by a specific name. To connect to a named instance of SQL Server, you can either specify the port number of the named instance (preferred), or you can specify the instance name as a JDBC URL property or a datasource property. If no instance name or port number property is specified, a connection to the default instance is created. See the following examples:
    To use a port number, do the following:
    jdbc:sqlserver://localhost:1433;integratedSecurity=true;<more properties as required>;
    To use a JDBC URL property, do the following:
    jdbc:sqlserver://localhost;instanceName=instance1;integratedSecurity=true;<more properties as required>;</b>
    Because the named instance has no explicit port  I've tried to use the second one but this doesn't work. I've tried all possible combinations of these parameters but either I get an error or my adapter connects to the first instance
    Any idea how I can connect to the second named instance?

    We have also a SQL server 2000 instance at the same server. Yesterday I have spoken with the sql server admin and he told me that he has disconnect the sql server 2000 databases whatever this means. :-D
    Now all works fine. Thank you for your help
    BTW I use the following connection string:
    jdbc:sqlserver://my_db_server;instanceName=my_instance_name;DatabaseName=my_db_name

  • Config of multiple SQL-Server databases without multiple gateways-possible?

    Hi Guys
    Can someone tell me if there's any way of connecting to different SQL Server databases (using Transparent Gateway) WITHOUT having to create multiple gateways?
    I have read in various sources that I MUST create one gateway per target database. I was contemplating a workaround such as creating a sysadmin SS user (and using these credentials in the db link) and trying to access any one of the databases within the SS instance. As I'm sure you know, you can query a SS database via a sysadmin user like:
    select * from my_db.dbo.my_table
    I realise it was a long shot to execute this from Oracle select * from my_db.dbo.my_table@my_dblink and yes....it didn't work.
    We have SS databases that are constantly dropped, recreated, renamed etc so we don't want to configure transparent gateway for a database only for it to be dropped 5 minutes later.
    Thanks in advance, Jon
    Edited by: user10240703 on 01-Oct-2009 03:07

    Thanks! I'm sure that's the fella...but things still progressing at snails pace.
    after (somehow) fixing the following ....
    ORA-02055: distributed update operation failed; rollback required
    ORA-02067: transaction or savepoint rollback required
    ora-1591 lock held in - doubt distributed transaction error
    I now get and can't get round the following error:
    PLS-00487: Invalid reference to variable 'REC1'
    Here's the simple code
    SQL Server
    alter procedure jontest as
    begin transaction
    select test from dbo.a
    commit
    Note: test is a varchar(50)
    PLSQL code
    create or replace package rcpackage is type RCTYPE is ref cursor;end rcpackage;
    declare
    rc1 rcpackage.rctype;
    rec1 varchar2(50);
    out_arg varchar2(255);
    begin
    rollback;
    out_arg := null;
    dbo.jontest@omg(rc1);
    fetch rc1 into rec1;
    dbms_output.put_line(rec1.test);
    close rc1;
    end;
    Note: as you can see, the sql server column and the rec1 are the same datatype so i've no idea why it doesn't like this. I've tried with different datatypes, integers etc with the same error. Any clue? Thanks,
    Getting there, but slowly :-)

  • SQL Server Always on Availability

    Test environment:
    Just we took backup of master database from PRODUCTION (Always On) server then restored on QA server. 
    All DB's showing Recovery Pending. Now i want to delete all databases on QA. But while deleting Db's getting below error:
    “ The database is currently joined to an availability group. Before you can drop the database you need to remove it from availability group”.
    Since QA DB is standalone server we can't configure Always On or DB mirroring.
    What is the alternative method for dropping or deleting all these databases with out configuring high availability?
    This is only for testing. Once cleanup done we will restore DB's from backup.
    Please suggest me. Actually this is customer requirement. Without restoring master we can achieve but i want to know the how to resolve this kind of errors.

    I tested this by restoring the master of a HADR enabled instance onto a stand-alone instance.
    DROP DATABASE AdventureWorks2012;
    Msg 3752, Level 16, State 1, Line 1
    The database 'AdventureWorks2012' is currently joined to an availability group.  
    Before you can drop the database, you need to remove it from the availatility group.
    ALTER AVAILABILITY GROUP agAdventureOLTP REMOVE DATABASE AdventureWorks2012;
    Msg 35221, Level 16, State 1, Line 2
    Could not process the operation. AlwaysOn Availability Groups replica manager is disabled on this instance of SQL Server. Enable AlwaysOn Availability Groups, by using the SQL Server Configuration Manager. Then, restart the SQL Server service, and retry
    the currently operation. For information about how to enable and disable AlwaysOn Availability Groups, see SQL Server Books Online.
    DROP AVAILABILITY GROUP agAdventureOLTP
    Command(s) completed successfully.
    DROP DATABASE AdventureWorks2012;
    Command(s) completed successfully.
    So yes, it seems to be possible to do this by first dropping the AG and then dropping the database.
    However I'd be concerned about the amount of 'unnecessary' metadata left behind by this approach. I really think best option is to script out your users (look into sp_help_rev_login) and
    objects and have a 'warm' server on standby for disasters.

  • SQL Server Always On

    Hi we are using SQL 2012 Enterprise edition, I tried to click on the always on availability tab from the SQL Server management studio, but it gets an error message "Enable the option from SQL server configuration manager". I checked the instance
    properties and found always on high availability option from there. It displays the following message
    'This computer is not a node in a failover cluster' and the option was in disabled. Please help me on this how to resolve this issue.
    Thanks

    Hi Karj,
    Please check the following link , sure it will helps to resolve your Issue.
    http://msdn.microsoft.com/en-us/library/ff878259.aspx
    http://sqlmag.com/sql-server-2012/microsoft-sql-server-2012-alwayson-availability-groups-feature
    DBA

  • Export SQL Server Table into Multiple Sheets in Excel

    I'm trying to understand the example here.
    http://visakhm.blogspot.in/2013/09/exporting-sqlserver-data-to-multiple.html
    Basically, I'm up to step #5.
    5. Data Flow Task to populate the created sheet with data for that subject. The Data Flow looks like below
    I don't understand this part.  Has anyone worked with this sample before?  Has anyone gotten this to work?  I'm trying to learn SSIS better, but I'm finding it hard to get started with this stuff.  I guess if I get a couple projects under
    my belt, I'll be fine.  The hardest part is getting started.
    If anyone feels really ambitions today, maybe you can assist me with two other projects as well.
    #1)
    http://visakhm.blogspot.in/2011/12/simulating-file-watcher-task-in-ssis.html
    #2)
    http://sqlage.blogspot.in/2013/12/ssis-read-multiple-sheets-from-excel.html
    http://beyondrelational.com/modules/24/syndicated/398/Posts/18163/ssis-how-to-loop-through-multiple-excel-sheets-and-load-them-into-a-sql-table.aspx
    I'd greatly appreciate any help I can get with this.
    Thanks!!
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Hi Ryguy72,
    The solution introduced in Visakh’s blog does work. I have written the detailed steps for you:
    1. Create an Excel file (Des.xls) as the destination file, rename the Sheet1 to “Excel Destination”, and add four columns: ID, Name, Subject, and Marks.
    2. Create an Object type variable Subject, a String type variable SheetName, and a String type variable WorkSheetQuery.
    3. Set the value of variable SheetName to “Excel Destination$”, and set the expression of variable WorkSheetQuery to:
    "CREATE TABLE `" + @[User::SheetName] + "` (
    `ID` Long,
    `Name` LongText,
    `Subject` LongText,
    `Marks` Long
    4. In the Execute SQL Task outside the Foreach Loop Container, set its General tab as follows:
    ResultSet: Full result set
    ConnectionType: OLE DB
    Connection: LocalHost.TestDB (e.g. an OLE DB Connection to the source SQL Server table)
    SQLSourceType: Direct input
    SQLStatement: SELECT DISTINCT [Subject] FROM [TestDB].[dbo].[DynamicExcelSheetDemo]
    5. In the Result Set tab of this Execute SQL Task, map result “0” to variable “User::Subject”.
    6. In the Collection page of the Foreach Loop Container, set the Enumerator option to “Foreach ADO Enumerator”, and set the “ADO object source variable” to “User::Subject”.
    7. In the Variable Mapping page of the container, map variable “User::SheetName” to index “0”.
    8. Create an OLE DB Connection Manager to connect to the destination Excel file. Choose the provider as Native OLE DB\Microsoft Jet 4.0 OLE DB Provider, specify the fully qualified path of the Excel file (such as C:\Temp\Des.xls), and set the Extended Properties
    option of the Connection Manager to “Excel 8.0”. Click “Test Connection” button to make sure the connection is established successfully.
    9. Set the General page of the Execute SQL Task inside the container as follows:
    ResultSet: None
    ConnectionType: OLE DB
    Connection: Des (e.g. the OLE DB Connection to the destination Excel file we create above)
    SQLSourceType: Variable
    SQLStatement: User::WorkSheetQuery
    10. In the Data Flow Task, add an OLE DB Source component, set the connection manager to “LocalHost.TestDB”, set “Data access mode” to “SQL command”, and set the “SQL command text” to:
    SELECT * FROM [TestDB].[dbo].[DynamicExcelSheetDemo] WHERE [Subject]=?
    11. Click the “Parameters…” button, and map Parameter0 to variable “User::SheetName”.
    12. Add an Excel Destination component, setup an Excel Connection Manager to the destination Excel file, set the data access mode to “Table name or view name variable”, and select variable name as “User::SheetName”. In this way, the OLE DB Provider can get
    the Excel metadata and enable us to finish the column mappings correctly.
    13. Since the Microsoft Jet 4.0 has only 32-bit driver, please make sure to set the Run64BitRuntime property of the IS project to False.
    In addition, please note that there will be one useless worksheets “Excel Destination” in the Excel file. We can remove them manually or use a Script Task to delete this worksheet programmatically (need to install .NET Programmability Support feature during
    Office installing).
    Regards,
    Mike Yin
    TechNet Community Support

  • SQL Server 2000 and Named Instances

    Heya,
    I'm having trouble creating a JDBC Connection Pool against our SQL Server box through the Admin Console. There are firewalls between the Weblogic box and the SQL Box, and they have traffic blocked on port 1434. I am specifying port 1433 in the URL, but it seems that it's still trying to do the dynamic port determination through UDP on 1434. My URL is along the lines of:
    jdbc:bea:sqlserver://99.99.99.99\\MYINSTANCE:1433
    Is there a way with named instances to force the driver to use the indicated port? I'm going to see if they'll open up port 1434 for a test, but I wanted to know if there are other options.
    Thanks,
    Anna

    Anna Veirauchs wrote:
    Heya,
    I gave it a try and it threw a socket error: Unknown host 99.99.99.99/myinstance
    I've been researching the issue on my end and I think I might be able to treat it like a non-named instance. This was sort-of hinted at in some Microsoft documentation for their JDBC driver. On Weblogic I put it in as 99.99.99.99 instead of 99.99.99.99\\myinstance and I got a connection. I'm confirming with my DBA that it somehow connected to the right database. It could be that since they've set up SQL Server with static ports it doesn't need the instance name. In SQL Server, you can't use dynamic p
    ort discovery if your database is not a member of a named instance, so the JDBC is forced to use the port you specify. Most people use dynamic discovery with named instances, but probably for security reasons our DBA does not want to use it.
    I really appreciate you taking time to look into this for me!
    Thanks,
    Anna
    P.S. That Admin Console does have another problem when setting up pools with named instances.
    You put it in as 99.99.99.99\\myinstance, the test will connect correctly, but when you try
    to create and deploy to a server you get an error because it appears to write 99.99.99.99myinstance somewhere.
    You usually have to go back to the Properties attribute and reinsert the "\\" for it to work right.you're very welcome. I will file a change request about the double back-slash...
    Joe

  • CR-11.5/ODBC-Changing SQL-Server Database in same instance

    I'm using CR 11.5 against SQL-Server 2005.  In the same SQL-Server default instance, I have both  Demo and Production databases.  I've used both the SQL-Server Native ODBC driver, and the OLE/ADO driver as a trial.  Some of my reports have used the standard Table selection method to generate the  SQL; others have needed a Command script due to embedded subqueries.
    My problem is getting a Demo reports changed over to Production reports.  If I make up an original Demo ODBC connection against the Demo database, and then make up a new Production ODBC connection against the same instance but against the Production database, the Data Source will change over to the newly named ODBC connection, but the Database remains pointed at the previous Demo database despite the new ODBC connection telling it to do otherwise.
    This seems particularly troublesome with the standard Table reports as the the new connection Database properties have to be changed to Production as well as the Database properties for every single table.
    Also, is it possible to use just one ODBC connection and force the change by changing the default database from Demo to Production and updating the data?
    Am I missing something here?
    Thanks!

    Set location and then Verify the data

  • Connection failed SQL Server 2008 R2 with Instance Name but with IP connect

    Hello,
    We have a server where SQL Server 2008 R2 is installed. Now from our local pc we connect to that database. I try to connect that database using instance name but cannot. If I put IP Address in the server name field, then it connect. my other colleague, they
    can connect using instance name but I cannot.
    How can I resolve this problem? How can I connect using Instance Name?
    Please help.

    Faisal there are a couple of possibilities for you. Some have been mentioned already. For us to help if you can provide some further information this would be appreciated. In the mean time some things that you can check
    If you are able to connect to the instance via Server IP Address then the instance is configured for remote connections and the firewall does allow for remote connections to come through. You can check the SQL Server Configuration Manager on the server to
    check what protocols (Named Pipes & TCP/IP are enabled). You can also check that the Browser is running.
    What error message do you receive when trying to connect via the ServerName or ServerName\InstanceName remotely?
    You could look at creating an entry in your host file with the server name and IP address on you workstation and test this. I am thinking that if a colleague is able to connect remotely via ServerName or ServerName\InstanceName that you potentially have
    a caching issue or a DNS issue. Are you able to ping the servername from your workstation and get a valid response from the correct IP address?
    I hope this helps.
    Thanks
    Warwick Rudd (MCM - SQL 2008 | MCT)
    (SQL Masters Consulting |
    My SQL Server Blog | Twitter)

  • SQL Server Always on Listerner doesnt realign to primary

    We habve set up SQL Server 2012 Always on between 2 (I1 and I2) computers using the listener as a connection point.
    I1 is primary (Read Write)
    I2 is sub (Read Only)
    If we connect via the Listener we get hooked to I1 (verifed using @@SERVERNAME)
    and all sql executed changes flow as expected to I2
    However when we do a failover (automatic or manual) so that I2 becomes primary and I1 is now sub the listener still connects to I1 as the base (using SSMS to verify) and tries to send all commands to I1.  Which then fail as I1 has become readonly
    as the sub.
    Reconnecting seems to have no effect.
    Is this expected behaviour for the Listener ? or should it have directed the connection to the new primary I2 ?
    Do we have to drop all connections for the Listener to repoint to the new primary I2 ?
    Is this a configuration issue on my end ? 

    Hello,
    Did you configure the Quorum in the Windows Server Failover Cluster, which is required for Automatic failover?
    What's more, automatic failover is supported only when the current primary and the secondary replica are both configured with failover mode set to AUTOMATIC and the secondary replica currently synchronized.
    Reference:http://technet.microsoft.com/en-us/library/hh213151.aspx#AutomaticFailover
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here.
    Fanny Liu
    TechNet Community Support

  • Restrictions on Installing SSMS and SSDT (SQL Server 2012) on multiple clients

    Our company has a license for SQL Server 2012 (either Standard or Enterprise, I'm not sure which).  We need to set up several client machines to manage the server and want to install SSMS on those machines.  In addition, a couple users need
    to be able to edit SSIS packages using SSDT.
    My question.  Using the SQL Server 2012 license we own, are we free to install SSMS, Books Online, and SSDT on any computer in our company, without any additional cost?  We won't be installing any other SQL Server component on those machines. 
    If someone can post a link to the Microsoft web site that verifies that, I would appreciate it. 
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

    Hi,
    According ‘Licensing SQL Server 2012 Components’ section in Microsoft
    SQL
    Server 2012 Licensing Guide:
    Management tools and other software identified as additional or supplemental software—such as product documentation, client connectivity tools, software add-ins, and SDKs—can generally be distributed and run on any number of devices for use with a licensed
    instance of SQL Server software. Refer to the Volume Licensing PUR for a list of additional software components provided with SQL Server 2012.
    Hope the information helps.
    Tracy Cai
    TechNet Community Support

  • SQL Server License for multiple machines

    Hi,
    Like Windows Server 2012 Data Centre edition, we purchase one license and can install OS on unlimited virtual machines.
    Is it something possible with SQL Server 2012 ? If I want to have multiple VMs...
    N.A.Malik

    Hi N A Malik,
    For more detailed information regarding to the license issue, please call
    1-800-426-9400,
    Monday through Friday, 6:00 A.M. to 6:00 P.M. (Pacific Time) to speak directly to a Microsoft licensing specialist. For international customers, please use the Guide to Worldwide Microsoft Licensing Sites to find contact information in your locations.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to fix a report textbox aggregate expression error in SQL server reporting with multiple datasets?

    I have a SQL Server Reporting Services report that has a textbox within a Report with variations of the following expression 
    =Sum(IiF(Fields!RegisterID.Value = 6000, 1, 0) 
    and 
    Iif(Fields!PointID.Value = 500, 1, 0)) / Sum(Iif(Fields!PointID.Value = 500, 1, 0)) 
    I see the following error when I try to preview the report: 
    The Value expression for the text box ‘Textbox2’ uses an aggregate expression without a scope. A scope is required for all aggregates used outside of a data region unless the report contains exactly one dataset. 
    What am I missing in this this expression to make it run incorrectly

    Can you include dataset name in your sum functions? e.g. Sum(IiF(Fields!RegisterID.Value = 6000, 1, 0) 
    and 
    Iif(Fields!PointID.Value = 500, 1, 0)) should include your dataset name as Sum(IiF(Fields!RegisterID.Value = 6000, 1, 0) and Iif(Fields!PointID.Value = 500, 1, 0),"datasetname")Like wise  Sum(Iif(Fields!PointID.Value = 500, 1, 0))  should also have dataset name Sum(Iif(Fields!PointID.Value = 500, 1, 0),"datasetname") 
    Gaur

Maybe you are looking for

  • How to make use of a global internal table in SAP BW during transfer rules

    HI friends, I am ABAP consultant working on some APO info cubes. I have an issue during the upload of planning area data into APO info cube. Please help. I am using a transfer routine to find the TECHWEEK from a data base table ZGC_CALWEEK based on t

  • Photoshop cs4 error message2

    every time i start photoshop cs4 i get this error message "adobe photoshop cs4 has stopped working.a problem caused the program to stop working correctly.windows will close the program and notify you if a solution is avaliable." i have tried numerous

  • Check this out.

    After much fine tuneing and a few small problems solved by updating my bios. I managed this OC. I have to say I love this system. Thanks Tire Smoke and everyone who helped me.

  • Transferring from old to new user account

    My existing user account is corrupted, and will not allow my Mac G5 (non-intel) to boot the desktop items; it only gets past the log in stage. In order to access my files, I created a new user account, and am able to transfer my files across easily e

  • LV 7.1.1 PDA modules & excel issues

    Hey everybody, i've attached a VI i wrote, all it does is add a number and stores it into an array then i write to a file. I tried changing the extension to .xls for the type of file and then I try to open it with excel in the pda and i get an error