SQL Server 2008 / 2012 - Best practices document

Hello Everyone
Can anybody share SQL Server 2008 / 2012 - Best practices.
Regards
Prashanth
SharePoint Administrator

Take a look here:
http://channel9.msdn.com/Series/Tuning-SQL-Server-2012-for-SharePoint-2013/Tuning-SQL-Server-2012-for-SharePoint-2013-01-Key-SQL-Server-and-SharePoint-Server-Integration-Conce (4 part video series)
https://technet.microsoft.com/en-us/library/hh292622.aspx
Trevor Seward
Follow or contact me at...
&nbsp&nbsp
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Similar Messages

  • SQL Server 2008 & 2012 Database backup on a shared loaction

    Hi,
    I have to plan for the Database backup on SQL Server 2008 & 2012 on a shared Path.
    We are building a new Maintenance plan &  specify the Database which needs to be backup & at the Folder location we specify the Shared Path Location. These steps I have followed using the below link,
    http://social.msdn.microsoft.com/Forums/en-US/be138ca3-4b2f-4464-8115-9a0a6f2e0fe6/sql-database-backup-on-network-share-using-maintenance-plan?forum=sqldatabasemirroring
    But the operation fails & throws the below error:
    Message
    Executed as user Microsoft (R) SQL Server Execute Package Utility  Version 10.50.1600.1 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  12:27:17 PM  Progress: 2014-02-13 12:27:19.13    
    Source: {B6CEBA00-4BD1-4931-AF23-B633BEDBEE4A}      Executing query "DECLARE @Guid UNIQUEIDENTIFIER      EXECUTE msdb..sp...".: 100% complete  End Progress  Error: 2014-02-13 12:27:20.63    
    Code: 0xC002F210     Source: Back Up Database Task Execute SQL Task     Description: Executing the query "BACKUP DATABASE DB TO  DISK ..." failed with the following error: "Cannot open backup device
    '\\DBBackup\SharePoint_backup\DB_backup_2014_02_13_122719_5314660.bak'. Operating system error 5(Access is denied.).  BACKUP DATABASE is terminating abnormally.". Possible failure reasons: Problems with the query, "ResultSet" property not
    set correctly, parameters not set correctly, or connection not established correctly.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  12:27:17 PM  Finished: 12:27:20 PM  Elapsed:  2.843 seconds. 
    The package execution failed.  The step failed.
    Note: But when I open the shared path in the Windows Explorer it opens successfully.
    Regards,
    Purvish Shah

    Hello,
    >>'\\DBBackup\SharePoint_backup\DB_backup_2014_02_13_122719_5314660.bak'. Operating system error 5(Access is denied.). 
    This clearly points out to fact that your SQL Server service account does not have permission of read/write on shared location,simple.
    >>But when I open the shared path in the Windows Explorer it opens successfully.
    This is because when you are browsing through explorer your windows login credential is used to access that folder but when you are running backup your SQL Server service account permission is used to write backup on shared folder ( which I assume it does
    not have ) so the access denied error.
    Hope this helps
    PS: I reffered the link its maily how you specify backup path its not about access denied error due to SQL server service acount not having privilege
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • SQL Server installation paths best practices

    In my company we're planning to setup a new (consolidated) SQL Server 2012 server (on Windows 2012 R2, VMWare). Current situation is there is a SQL Server 2000, a few SQL Server 2008 Express and a lot of Access databases. For the installation I'm wondering
    what the best selections for the various installation paths are. Our infra colleagues (offshore) have the following standard partition setup for SQL Server servers:
    C:\ OS
    E:\ Application
    L:\ Logs
    S:\ DB
    T:\ TEMPDB
    And during the installation I have to make a choice for the following
    Shared feature directory: x:\Program Files\Microsoft SQL Server\
    Shared feature directory (x86): x:\Program Files\Microsoft SQL Server\
    Instance root directory (SQL Server, Analysis Services, Reporting Services): x:\Program Files\Microsoft SQL Server\
    Database Engine Configuration Data Directories:
    Data root directory: x:\Program Files\Microsoft SQL Server\
    User database directory: x:\Program Files\Microsoft SQL Server\MSSQL11.x\MSSQL\...
    User database log directory: x:\Program Files\Microsoft SQL Server\MSSQL11.x\MSSQL\...
    Temp DB directory: x:\Program Files\Microsoft SQL Server\MSSQL11.x\MSSQL\...
    Temp DB log directory: x:\Program Files\Microsoft SQL Server\MSSQL11.x\MSSQL\...
    Backup directory: x:\Program Files\Microsoft SQL Server\MSSQL11.x\MSSQL\...
    Analysis Services Configuration Data Directories:
    User database directory: x:\Program Files\Microsoft SQL Server\MSSQL11.x\MSSQL\...
    User database log directory: x:\Program Files\Microsoft SQL Server\MSSQL11.x\MSSQL\...
    Temp DB directory: x:\Program Files\Microsoft SQL Server\MSSQL11.x\MSSQL\...
    Temp DB log directory: x:\Program Files\Microsoft SQL Server\MSSQL11.x\MSSQL\...
    Backup directory: x:\Program Files\Microsoft SQL Server\MSSQL11.x\MSSQL\...
    Distributed Replay Client:
    Working Directory: x:\Program Files (x86)\Microsoft SQL Server\DReplayClient\WorkingDir\
    Result Directory: x:\Program Files (86)\Microsoft SQL Server\DReplayClient\ResultDir\
    So I'd like some on assistance on the filling in the x drive letters. I understand it's best practice to seperate the data files and the logs files. But should that also be the case for TempDB? And should both the database and tempdb log files go to the
    same log paritition then? What about the backup directories? Any input is very much appreciated!
    Btw, I followed the http://www.sqlservercentral.com/blogs/basits-sql-server-tips/2012/06/23/sql-server-2012-installation-guide/ guide for the installation (Test server now).

    You can place all installation libraries on E:\ Drive.
    >>So I'd like some on assistance on the filling in the x drive letters. I understand it's best practice
    to seperate the data files and the logs files. But should that also be the case for TempDB? And should both the database and tempdb log files go to the same log paritition then? What about the backup directories? Any input is very much appreciated!
    You can place tempdb data files on T drive and I prefer to place tempdb log and user database log file
    on the same drive i.e is L:\ Drive.
    >>Backup directories
    If you are not using any third party tool then i would prefer to create separate drive for backup.
    Refer the below link for further reading
    http://www.brentozar.com/archive/2009/02/when-should-you-put-data-and-logs-on-the-same-drive/
    --Prashanth

  • SQL Server 2008/2012 Express Connection Problem

    Hello,
    since a couple of days I'm working on a problem with the SQL Server Express (32-Bit as well as 64Bit).
    I installed a new SQL Server 2008 with an instance named SQL2012 and the Management Studio 2008 R2 on the same machine. I easily am abled to connect to the Server using the Management Studio with several Server Name settings (localhost, IP, (local), .\SQL2012).
    Now I have a self-written programm (C#) wich should connect to the Server, but it does not work. It is definitely not a problem of the programm code because the same programm is abled to connect to a SQL Server 2008 Enterprise Edition. Similar Problem with
    the 2012 Express Version (2012 Enterprise not tested).
    The connection string I use and wich is working with connecting on the Enterprise Edition is: Server=Servername\Instance;Database=DatabaseName;User Id=user;Password=password;
    Anybody any solution why the Express-Version refuses to connect?
    (Sorry if I have made several failures in my text, English is not my native language)

    It Occurs when I try to ping.Send the Server to see if he is active. If I skip this step and try to connect directly to the server (con.Open()) I get the exception:
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The
    server was not found or it can not be accessed. Verify that the instance name is correct and that SQL Server allows remote connections. (provider: Named Pipes Provider, error: 40 - Connection with the SQL Server couldn't be opened)

  • Sql server 2008/2012 Trigger Query

    
    Hi All,
    I am trying to create a SLQ server trigger so that when TAS1 code is 003 then change the HRSCODE to OTHR. Would anyone be able to provide me with a sample code as to do this please ?

    Are you looking for something like the below code
    IF OBJECT_ID('EMPLOYEE') IS NOT NULL
    DROP TABLE EMPLOYEE
    GO
    /* Create employee table if it does not exist */
    CREATE TABLE EMPLOYEE
    EMPID INT PRIMARY KEY,
    FNAME VARCHAR(25),
    LNAME VARCHAR(25),
    GO
    /* Populate employee table with sample rows */
    INSERT INTO EMPLOYEE (EMPID, FNAME, LNAME)
    VALUES (500, 'John','Smith'),
    (501, 'Alex','Admas'),
    (502, 'Eric','James'),
    (503, 'Shaun','Marsh')
    GO
    /* See the table records from both tables. We have four rows in both tables */
    SELECT * from EMPLOYEE
    CREATE TRIGGER TRG_InsertSyncEmp
    ON dbo.EMPLOYEE
    AFTER INSERT AS
    BEGIN
    UPDATE T1
    SET FNAME='Jayaram'
    FROM EMPLOYEE T1 WHERE EMPID=(SELECT EMPID FROM INSERTED where FNAME='Prashanth')
    END
    GO
    INSERT INTO EMPLOYEE (EMPID, FNAME, LNAME) VALUES (505, 'Prashanth', 'jayaram')
    select * from EMPLOYEE
    --Prashanth

  • SQL Server 2008 - Best Practices Analyzer

    Is there a version of SQL Server 2008 Best Practices Analyzer available for download?   If not, can I use BPA for SQL Server 2005 to run a DB assessment on a SQL Server 2008 database?  Please let me know what your recommendation is?
    Thanks

    Microsoft® SQL Server® 2008 R2 Best Practices Analyzer has been released for few months.
    More details here
    http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=0fd439d7-4bff-4df7-a52f-9a1be8725591

  • Issues installing SQL Server 2008 instance - Install fails

    Hi there,
    I have a server windows server 2008 R2 standard.
    While doing an Enterprise to Standard downgrade, I have removed enterprise edition of SQL Server 2008, rebooted and while installing standard edition, I get the below error saying "You
    SQL server 2008 installation completed with failures. Some or all identity references could not be translated"
    Bit of background. This server has another express instance of SQL Server 2008. I have used local system account, network service as well as our general SQL service account, but I get the error
    towards the end of the installation and it fails saying “Some or all identity references could not be translated.”
    I am installing a named instance with the same name as before but fails. I have tried creating a test instance that fails too. Any ideas? I have also run the clean up utility but no joy.
    Cheers
    Faltaf

    Hi FAltafB,
    According to your description, you come across the error that some or all identity references could not be translated. Please help to post SQL Server setup error log for analysis. By default, SQL Server setup summary and detail logs located in C:\Program
    Files\Microsoft SQL Server\100\Setup Bootstrap\Log.
    Based on my research, this issue could be due to the incomplete uninstallation for previous installation. Another cause could be that you are installing SQL Server after your machine becomes a domain controller.
    To troubleshoot the issue, please pay attention to the points below.
    1. Make sure you have administrative rights on the computer, uninstall all the components related with SQL Server 2008 enterprise from the control panel and delete registry keys mentioned in the article:
    http://blogs.msdn.com/b/sreekarm/archive/2010/03/15/sql-express-is-not-installed-properly-steps-to-be-taken-before-reinstall-again.aspx
    2. Use
    SQL Server 2008 R2 Best Practice Analyzer to detect if SQL Server is installed on a domain controller. If SQL Server is installed on a domain controller, please demote your machine from being a domain controller and install the SQL Server again since it
    is not recommended to install SQL Server on a domain controller.
    Regards,
    Michelle Li

  • Using SSDT-BI in Visual Studio 2012 to create and maintain SSRS, SSAS, SSIS in SQL Server 2008 R2

    Hi,   My management is wanting all the developers (database and .net) to upgrade from Visual Studio 2008 to Visual Studio 2012.  We are currently using SQL Server 2008 R2 for our data warehouse and using Business Intelligence (SSIS,
    SSAS, and SSRS) to maintain it.  Our database team is also wanting to create database projects and include that in our Team Foundation Server 2010 code repository along with our BI code.  From what I've been able to research googling the
    internet is there are two products available SSDT and SSDT-BI which can be installed into VS2012, but it appears that only SSDT for database projects is the only thing that will work until we someday upgrade to SQL Server 2012.  Most of the information
    I've found on the internet regarding this subject is over a year old and a lot can change in a year.  So my questions are can we install VS2012 and both SSDT and SSDT-BI to create and maintain the SSIS, SSRS, and SSAS currently in our SQL Server 2008
    R2 database?  If we can install these three items, VS2012 and the two SSDTs, and are able to create new BI and maintain our current BI in our SS2008R2 database then what issues might we have with our TFS2010 code repository?  We prefer
    to use only VS2012 or VS2008 but not both at the same time.  If we can't do everything we are currently doing in VS2008 with our SS2008R2 database by switching to VS2012 and the two SSDTs then we will stay with VS2008 until we someday upgrade
    to SS2012.  Please advise and thank you.  James M.

    I'm going to move this to the SSAS blog, where most SSDT-BI questions are answered (this forum mainly answers SSDT questions). Someone there may be able to give you better information but here's what I know:
    - I think you'll only need to install SSDT-BI since you're using SSIS, SSAS and SSRS. SSDT is the database tooling which it sounds like you wouldn't use, and it's actually built into VS2012 in any case.
    - SSIS projects don't work with earlier versions of SQL Server, but SSAS and SSRS do. Details are on
    this blog post. I don't have enough knowledge to suggest workarounds or best practices for handling the SSIS issue. Perhaps you could keep 2 projects, or 2 branches of the same project (one for 2012, one for 2008) if that's possible? I think your BIDS projects
    will be upgraded to SSDT-BI compatible projects so it's work checking them into source control, upgrading, then comparing to understand what's changed. You might be able to keep the same overall source and just change a few settings in the different branches?
    Hopefully someone on the SSAS forum can help give you more information and suggestions.
    Kevin

  • Can service broker work between SQL Server 2008 and 2012, ssbdiagnose returned an error !

    Hello, 
    We have a setup of three applications that sends and receive messages using Service Broker.
    One part is on a server, we'll call 'S' have Microsoft SQL Server 2008 (SP3) - 10.0.5512.0 (X64)
    The other part, we'll call 'E' use to have Microsoft SQL Server 2008 (SP3) - 10.0.5512.0 (X64).
    But I am migrating these apps to a new server, we'll call 'C' that has: Microsoft SQL Server 2012 (SP1) - 11.0.3339.0 (X64)
    I have used this command line tool to test it :
    ssbdiagnose -E CONFIGURATION FROM SERVICE "//E/S/CService" -S "ServerC" -d EDatabase TO SERVICE "//S/S/ECService" -S ServerS -d SDatabase ON CONTRACT //E/S/ECContact
    It returned: 
    An internal exception occurred: Cannot read property ServiceBrokerGuid.
    This property is not available on SQL Server 7.0.
    So, I am wondering, is it supposed to work between these two versions ?
    As more info, in the previous setup, it was using certificates but I have changed the Endpoints to use only Windows Authentication.
    Thanks for any advice.
    Claude

    Hello, 
    Many thanks to you and Fanny for looking at my question.
    In fact I was unclear, please let me provide you with more details.
    Maybe the use of "always on" plays a role here...  I will use different names so it might be clearer...
    ServerSoftware2008 server has SoftwareDB database.
    ServerEmployees2008 server has EmployeesDB database.
    Service broker use to work fine between those two above, with certificates.
    The new server comes in, two virtual servers with SQL Server 2012 Enterprise Edition with Always On.
    I call it ServerEmployeesC but this is the listener.  Behind, there is ServerEmployees2012_A and ServerEmployees2012_B and of course, both have a EmployeesDB database.
    So, to use SSBDiagnose, I wonder if I need to use quotes around values and if I can use the listener name with FQDN.  Concerning the use of instance name in the syntax, there is only one instance per server, is it best practice to use it on the command
    line ?
    Here is again, my command :
    ssbdiagnose -E CONFIGURATION FROM SERVICE "//E/S/E" -S "ServerEmployeesC.sub.acme.com" -d EmployeesDB TO SERVICE "//S/S/E" -S "ServerSoftware2008.sub.acme.com" -d SoftwareDB ON CONTRACT //E/S/E
    Again, many thanks for any help you will be able to provide, the people who configured this application at first are no longer here and I am trying to configure the new server in a task of migrating to SQL Server 2012 for one of the two servers involved
    and I am having a lot of problems doing it.
    Best regards,
    Claude

  • Attempted to perform an unauthorized operation error while installing SQL Server 2008 R2 Enterprise edition on Windows Server 2012 R2 standard VM server

    I've been trying fresh installation of SQL Server 2008 R2 enterprise on Windows Server 2012 R2 standard VM server several times for two weeks, but always get the error "Attempted to perform an unauthorized operation". At first, I attempted
    to install all features, but failed several times. So I decided to try install just Database Engine service, and still fail at the SqlBrowserConfigAction_Install_ConfigNonRC_Cpu32, with the error "Attempted to perform an unauthorized operation".
    I remote login to server with my admin domain account. This account is in server local Administrators group. I
    1. Right-click on setup.exe file | properties | Compatibility tab | select compatibility to Windows 8.Then click OK.
    2. Right-click on setup.exe file | Run as Administrator, to start the Installation Center.
    I have the document of my installation steps and zip file of the installation logs, if you need to take a look.
    Appreciate for any help!
    ntth

    Hi ntth,
    "Attempted to perform an unauthorized operation"
    The above error is always related to the Windows account SID mapping. I recommend you login into Windows using another Windows account which has administrative privileges and run SQL Server setup using that Windows account.
    Besides, please note that we need to apply SQL Server 2008 R2 Service Pack 2 or a later update when installing SQL Server Windows Server 2012 R2. For more information, please review this
    KB article.
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • Install SQL Server 2008 R2 SP 1 on Windows Server 2012

    Dear All,
    I've downloaded SQL Server SP1 from this link:
    http://www.microsoft.com/en-us/download/details.aspx?id=26727
    I downloaded  :
    SQLServer2008R2SP1-KB2528583-x64-ENU.exe
    SQLManagementStudio_x64_ENU.exe
    SQLServer2008R2SP1-KB2528583-IA64-ENU.exe
    when i run SQLServer2008R2SP1-KB2528583-x64-ENU.exe i have error:
    There are no SQL Server instances or shared features that can be updated on this computer
    what that i missed? is that i must install SQL Server 2008 R2?
    because if i run the SQL Server 2008 R2 there are compatible issue. I run this on Windows Server 2012
    Please Help.
    Best regards,
    Surbakti

    Hi,
    The cause could be an invalid entry in the userSettings section of the Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings file.
    Delete this configuartion file or delete the folder "Microsoft_Corporation" and see how it works.
    Run the command: rd /s /q %localappdata%\Microsoft_Corporation
    For your reference:
    http://blogs.msdn.com/b/smondal/archive/2013/07/26/an-error-occurred-creating-the-configuration-section-handler-for-usersettings-microsoft-sqlserver-configuration-landingpage-properties-settings.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • SharePoint 2013 + SQL Server 2008 vs 2012

    I am trying to determine the best course of action when building a new SharePoint 2013 Enterprise Farm. Should we use SQL Server 2008 R2 or SQL Server 2012? I have found some information online, but I wanted to know if there were more pros and cons to SQL
    2012 over 2008. Can anyone tell me if my short list is adequate enough? Also, are there any integration concerns with other applications that I may need to look out for by using SQL 2012 that don't exist in SQL 2008?
    The list of benefits of SQL 2012 over SQL 2008 I know of include:
    AlwaysOn
    Read-Only Secondary
    Contained Database
    ColumnStore Indexes
    Shredded Storage
    PowerPivot BI
    Reporting Services BI
    Are there any negatives to using SQL 2012?
    Thanks,
    Alex

    Alex,
    The only negatives I have seen are 
    1. You must be careful that the AOAG configuration is supported. For many cases like the config DB, Async mode is not supported for DR.
    2. Microsoft has not published their support stance for Many DBs yet.
    So for example for "App Management Service Application" DB or "Secure Store" DB Microsoft says 
    To be determined. Currently not supported because testing is not finished.
    For a complete list look here
    http://technet.microsoft.com/en-us/library/jj841106.aspx
    So although AOAG is a great option technically (and perhaps in the long run the strategic option) I would like Microsoft to complete their testing. (unless one is ready to take risk and go where MS itself hasn't gone)
    val it: unit=()

  • Upgrade from SQL server developer 2008 R2 to SQL Server developer 2012

    Hi,
    We have bought 5 licenses of SQL server developer 2012.
    This licenses provided us an option to use SQL server 2008 R2. And we have been using 2008 R2 till now.
    But now we want to upgrade to SQL server developer 2012 edition
    I want to know the process for up-gradation. When I looked at the licensing portal, it says "This product does not require a product key"
    My questions are: 
    1) Should I download the 2012 version from licensing center and pass the downloaded copy to respective team members?
    2) Can the team member download the SQL server 2012 developer edition from Microsoft site and install it on their machines?
    3) Do we need to first un-install 2008 R2?
    4) How the licensing can be managed in cases of products which say "This product does not require a product key.", i.e. how can I make sure that no more than 5 installations are done by the team
    Thanks

    Hi,
    We have bought 5 licenses of SQL server developer 2012.
    This licenses provided us an option to use SQL server 2008 R2. And we have been using 2008 R2 till now.
    But now we want to upgrade to SQL server developer 2012 edition
    I want to know the process for up-gradation. When I looked at the licensing portal, it says "This product does not require a product key"
    My questions are: 
    1) Should I download the 2012 version from licensing center and pass the downloaded copy to respective team members?
    2) Can the team member download the SQL server 2012 developer edition from Microsoft site and install it on their machines?
    3) Do we need to first un-install 2008 R2?
    4) How the licensing can be managed in cases of products which say "This product does not require a product key.", i.e. how can I make sure that no more than 5 installations are done by the team
    Thanks
    1. Developer edition has license associated with it .And yes you can download it if you have subscription.But please be informed that you cannot use Developer edition in production,its not allowed and illegal.
    2.You can upgarde from SQL server 2008 R2 to 2012 developer edition by Inplace upgrade method ,you can also follow side by side approach.For side by side approach you have to get new box ,intall OS,then install SQL server 2012 ,move logins and jobs and move
    databases by backup restore.You must see supported upgrades
    http://technet.microsoft.com/en-us/library/ms143393(v=sql.110).aspx
    3.No not ins any case ,please dont do that
    4.Licensing question should best be asked with Microsoft licensing expert.
    reg process of upgarde first run upgrade advisor and look for error if any.Then run SQL server 2012  setup and in maintenance section select edition upgrade,other process is same as SQL Server installtion
    http://www.mssqltips.com/sqlservertip/2505/version-and-edition-upgrades-with-sql-server-2008-r2/
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Configuring Service Broker between SQL Server 2008 and 2012 on Intranet

    Hello, I would need help in configuring Service broker. As both servers are on the intranet, I wanted to remain the most simple so I used no certificates and allowed anonymous access but still, using SSBDiagnose, I can see errors.
    I would like to paste here my configuration and my usage of SSBDiagnose, I already asked a question about SSBDiagnose usage but this new question is rather on the usage of certificates and the configuration of SSB, for me to know if I am doing this in the
    best possible way.
    Reading on the web, I have read in few places that certificates are not mandatory and that Windows Authentication only can be used. Then, I read that even if endpoints don't request certificates, the communication between two servers will still requires
    certificates so I am wondering where is the truth... 
    I have two servers:
    EmployeesSvr (SQL Server 2012 Enterprise Edition with Always On, EmployeesSvr is the listener name in front of two virtual servers)
    CREATE MESSAGE TYPE [//E/S/ETChanged] VALIDATION = WELL_FORMED_XML
    CREATE CONTRACT [//E/S/ECContract] ([//E/S/ETChanged] SENT BY INITIATOR)
    CREATE QUEUE [dbo].[ECQueue] WITH STATUS = ON , RETENTION = OFF , ACTIVATION ( STATUS = ON , PROCEDURE_NAME = [dbo].[SSB_ECQueueProc] , MAX_QUEUE_READERS = 1 , EXECUTE AS N'dbo' )
    CREATE SERVICE [//E/S/ECService] ON QUEUE [dbo].[ECQueue] ([//E/S/ECContract])
    CREATE ROUTE [RouteToSECService] WITH SERVICE_NAME = N'//S/S/ECService' , BROKER_INSTANCE = N'F...' , ADDRESS = N'TCP://SoftwaresSrv.test.com:4022'
    CREATE REMOTE SERVICE BINDING [SECServiceBinding] TO SERVICE N'//S/S/ECService' WITH USER = [domain\SvcBrokerTestUser] , ANONYMOUS = ON
    CREATE ENDPOINT [ESBEndpoint] STATE=STARTED AS TCP (LISTENER_PORT = 4022, LISTENER_IP = ALL) FOR SERVICE_BROKER (MESSAGE_FORWARDING = DISABLED, MESSAGE_FORWARD_SIZE = 10, AUTHENTICATION = WINDOWS NEGOTIATE, ENCRYPTION = DISABLED)
    SoftwaresSvr (SQL Server 2008 R2)
    CREATE MESSAGE TYPE [//E/S/ETChanged] VALIDATION = WELL_FORMED_XML
    CREATE CONTRACT [//E/S/ECContract] ([//E/S/ETChanged] SENT BY INITIATOR)
    CREATE QUEUE [dbo].[ECQueue] WITH STATUS = ON , RETENTION = OFF , ACTIVATION ( STATUS = ON , PROCEDURE_NAME = [dbo].[SSB_ECQueueProc] , MAX_QUEUE_READERS = 1 , EXECUTE AS N'dbo' )
    CREATE SERVICE [//S/S/ECService] ON QUEUE [dbo].[ECQueue] ([//E/S/ECContract])
    CREATE ROUTE [RouteToECService] WITH SERVICE_NAME = N'//E/S/ECService' , BROKER_INSTANCE = N'2...' , ADDRESS = N'TCP://EmployeesSvr.test.com:4022'
    CREATE REMOTE SERVICE BINDING [EECServiceBinding] TO SERVICE N'//E/S/ECService' WITH USER = [domain\SvcBrokerTestUser] , ANONYMOUS = ON
    CREATE ENDPOINT [SSBEndpoint] STATE=STARTED AS TCP (LISTENER_PORT = 4022, LISTENER_IP = ALL) FOR SERVICE_BROKER (MESSAGE_FORWARDING = DISABLED, MESSAGE_FORWARD_SIZE = 10, AUTHENTICATION = WINDOWS NEGOTIATE, ENCRYPTION = DISABLED)
    My SSBDiagnose command :
    ssbdiagnose -E CONFIGURATION
    FROM SERVICE //E/S/ECService
    -S EmployersSvr
    -d EmployersDB
    TO SERVICE //S/S/ECService
    -S SoftwaresSvr
    -d SoftwaresDB
    ON CONTRACT //E/S/ECContract
    The result :
    Microsoft SQL Server 10.50.1600.1
    Service Broker Diagnostic Utility
    D 29978 EmployersSvr EmployersDB
    No valid certificate was found for user domain\SvcBrokerTestUser
    D 29977 SoftwaresSvr SoftwaresDB
    The user domain\SvcBrokerTestUser from database EmployersDB on EmployersSvr cannot be mapped into this database using certificates
    D 29933 SoftwaresSvr SoftwaresDB
    The routing address TCP://EmployeesSvr.test.com:4022 for service //E/S/ECService does not match any of the IP addresses for EmployersSvr
    An internal exception occurred: An exception occurred while executing a Transact-SQL statement or batch.
    Thank you for any help, I am searching for several answers :
    Can I use the setup as I defined, with no certificate ?  Is it risky ?
    Is there too many objects defined ?  Is it mandatory to have a Route and a Remote Service Binding ?  I don't understand how those two are working togheter...
    Is it ok to use the same windows account on each side, do they only need an 'Open' access rigth or do they need to be db_owner ?
    Best regards,
    Claude

    Hi Claude,
    1.Can I use the setup as I defined, with no certificate ?  Is it risky ?
    Service broker does not have to use certificate. The Certificate is necessary when you want to use dialog security, by which you can encrypt all messages sent outside a SQL Server instance.
    http://technet.microsoft.com/en-us/library/ms166036(v=SQL.105).aspx
    2.Is there too many objects defined ?  Is it mandatory to have a Route and a Remote Service Binding ?
    Remote Service Binding is used to privde dialog security. If you donnot need the dialog security, the Remote Service Binding is not mandatory.
    http://technet.microsoft.com/en-us/library/ms166042(v=SQL.105).aspx
    By default, each database contains a route that specifies that messages for any service which does not have an explicit route are delivered within the SQL Server instance. Since you have communications between different instances, creating a route between
    them is necessary.
    http://technet.microsoft.com/en-us/library/ms166032(v=SQL.105).aspx
    3.Is it ok to use the same windows account on each side, do they only need an 'Open' access rigth or do they need to be db_owner ?
    The windows account must own the certificate used for authentication. You can find more information below.
    http://technet.microsoft.com/en-us/library/ms166045(v=SQL.105).aspx
    http://technet.microsoft.com/en-us/library/ms186278(v=sql.105).aspx
    Best regards,

  • Did SQL 2012 supported all commands of SQL Server 2008?

    Hello All,
    We are using SQL Server 2008. We have created very huge system. It is working fine but now we want to upgrade and need to use SQL Server 2012. Any issue if we move all data base with SQL, DDL, DML from SQL 2008 to SQL 2012?
    Any one face such issue, which we can face or need to take care?
    Thanks,
    Sandeep

    As per my knowledge I am aware of few of  the below..
    Deprecated
        SET ROWCOUNT
        SQL Server Database Mirroring
        Specifying the SQLOLEDB provider for linked servers.
        Not ending Transact-SQL statements with a semicolon.
        Specifying table hints without using the WITH keyword.
        Specifying NOLOCK or READUNCOMMITTED in the FROM clause of an UPDATE or DELETE statement.
        SQL Trace stored procedures, functions, and catalog views.
        sp_dbcmptlevel
        sp_attach_db & sp_attach_single_file_db
        c2 audit option
        default trace enabled option
        sp_addlogin / sp_droplogin / sp_adduser / sp_dropuser / sp_grantdbaccess / sp_revokedbaccess / sp_denylogin
    Discontinued
        fastfirstrow option
        compatibility level 80
        sp_dboption
        AWE
    For more details, please refer to this detailed document (including 4 topics) -
    http://msdn.microsoft.com/en-us/library/ms143532.aspx
    Deprecated Database Engine Features in SQL Server 2012
    http://technet.microsoft.com/en-us/library/ms143729%28v=sql.110%29.aspx
    http://www.bigator.com/2012/02/07/interesting-changes-in-database-design-of-sql-server-2012/
    http://msdn.microsoft.com/en-us/library/ms144262.aspx
    Raju Rasagounder Sr MSSQL DBA

Maybe you are looking for

  • Ovi Map licence on N96, error code 3 when i want t...

    Hello, I tried to buy map licence 9.99 euro for 1 year. but when it's confirming, it showed error code 3. I don't know what's happen. So how can i do? And do you have another way to buy the licence? example via internet, IDEALI live in Netherland) Th

  • [915 Series] How do I enable the IDE raid Slots (the yellow ones)

    On the Bios there is an option to enable the onboard raid slots, but whem I enable it, noting happens, and in the next restart, this item doen't show in the bios menu. I read on the forum that this problem appened to other owners of this motherboard,

  • Safari times out when trying to log in to a secure connection

    I am using 6.0.5. My work requires me to make a secure connection for various data that I access, which all uses Shibboleth. I have no problem logging in to get information except with one particular site. I have already: checked to see if it is a kn

  • InfoView Issues

    Post Author: Tiffany CA Forum: Publishing When I try to view a report in .NET InfoView I am made to sign into the CMS before I can view the report.  I never had to do this before.  This just started happening a few days ago.  I recently put Service P

  • Out of Bounds feature in Elements 9

    I'm trying to use the out of bounds feature in Elements 9 and it just hangs up and can't get it to work.  Any suggestions????