Deploy Sql Server to Azure Sql

I'm trying to deploy an existing SQL Server database to Azure but I'm getting a "User has been orphaned" error and it fails to deploy.
How do I fix this?
Appreciate any help.
Marilyn Gambone

Hi
Most probably the problem is you have orphaned users in your on-prem sql server.
you should fix your orphaned user and give the migration a try again:
This query will give you the orphaned users in each database:
USE DatabaseName
EXEC sp_change_users_login 'Report';
You can take a look at this post for fixing the orphaned users:
http://dbadiaries.com/using-sp_change_users_login-to-fix-sql-server-orphaned-users

Similar Messages

  • SQL Server on Azure: Performance Nightmare

    Martin2012 wrote:what types of disk have you got holding the SQL data? Hopefully stripped SSDshttps://msdn.microsoft.com/en-us/library/azure/dn133149.aspxCan you you the SQL as a Service http://azure.microsoft.com/en-gb/services/sql-database/
    or do you need to config the sqlDB more heavily?Hi MartinWe have deployed our SQL Server in Premium Storage, Standard DS3, giving it a single P20 disk.As we understood, there is also throttling on the machine that u use. this means that a DS3 will limit everything to 128MB/s and 12800 IOPS (we can live with the IOPS though).Neverteless, 128MB/s means that when SQL uses allocation blocks of 64KB, it will also limit the IOPS to 2300.Azure SQL is not an option, since our DB is heavily stressed.We can't get the highest model, since the cost is too high.

    Hi guys and gals!I got some problems with running an SQL Server on Azure.
    The goal is to deploy our .NET application to Azure by the end of the year. Running our app on a just a simple webserver goes as smooth as ever, no problem.
    The big problem is the SQL Server.
    SQL on Azure has the reputation to run quite slow. The reading IOPS are OK, but the writing... a NIGHTMARE. We are talking about 0.26 MB/s when it is fresh out of the box!!
    After the initial tests, I have found an article with best practices for Azure:
    https://msdn.microsoft.com/en-us/library/azure/dn133149.aspxI thought: Good enough, let's try this.
    But even after turning our server upside down and back, there are barely any changes.Do you guys also have noticed this problem? What am I doing wrong? Is there something that I missed completely?Thank you and happy computing!
    This topic first appeared in the Spiceworks Community

  • Securing SQL Server 2012 Azure VM with SSL - Help!!!

    Hello all,
    I am trying to encrypt with SSL my SQL server 2012 Azure VM; I have created the cert and I can see it in cert mgr but when I go to SQL config MGR -protocols for MSSQLSERVER to setup the encryption, the certificate tab contains no certificates :(
    this is so annoying please can someone help me with this?
    Thanks so much,
    BN.

    Also, I am getting the following error whilst connecting to the Azure VM client side via SQL management studio:
    “The certificate chain was issued by an authority that is not trusted”
    I can get around this by specifying "TrustServerCertificate=True" in the connection string; what is causing this and should I be alarmed? can this be resolved?
    Hi ,
    According to your error message, When the SQL Server instance has only a self-signed certificate, the encrypt property is set to true and the trustServerCertificate property is set to true. There is an similar issue about SqlException (0x80131904), you can
    review the following post.
    http://stackoverflow.com/questions/17615260/the-certificate-chain-was-issued-by-an-authority-that-is-not-trusted-when-conn
    In addition, there is detail about writing secure connection strings for SQL Database in Windows Azure, you can review it.
    http://social.technet.microsoft.com/wiki/contents/articles/2951.windows-azure-sql-database-connection-security.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Licencing of SQL Server on Azure VM

    hi 
    If i install SQL server on Azure VM on a small instance which provides 1 core.
    Since the licences for SQL server are core based how many licenses will i need to get it installed
    Regards
    Krishna

    Hi Krishna,
    SQL Server in Virtual Environments is licensed in minimum 4 cores. 1 license cover 2 cores so you need 2 license for SQL Server.
    View this:
    http://download.microsoft.com/download/7/3/C/73CAD4E0-D0B5-4BE5-AB49-D5B886A5AE00/SQL_Server_2012_Licensing_Reference_Guide.pdf

  • Is it dangerous if I expose UDP 1434 port of SQL 2008R2 server in Azure VM to the Internet ?

    I am setting up client/server Application running on SQL2008 server on Azure VM.
    Is it dangerous if I  expose UDP 1434 port of SQL 2008R2 server in Azure VM  to the Internet ?

    I do not get your answer exactly , but you mean "That is a much bigger issue from a security perspective." this is dangerous to expose SQL server connection port to the Internet ?
    Application uses named SQL instance , so it needs UDP 1434 port to connect to SQL server.
    Exposing any server to a network is dangerous.  Exposing a server to the public internet is more risky than connecting to a private network.  You cannot eliminate risk but it can be mitigated.
    An inherent risk with exposing the SQL Server port is that any client with network connectivity can then try to compromise security, commonly with a dictionary attack.  A malicious user can then gain access to the database limited only by
    the compromised account security context.
    There are several steps you can take to mitigate this risk.  To name a few, allow only trusted IP addresses through the firewall.  Run only those services actually needed.  Expose only those ports needed.  Rename the sa login. 
    Assign strong passwords to all accounts.  Keep all software up-to-date with security patches.  Use a service layer to access database services instead of directly from front-end clients.
    In your case, you can hard-code the named instance port in connection strings instead of using the SQL Browser service.  Your connection strings do not need to specify the instance name with this technique and UDP 1434 is not needed for connectivity. 
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Deploy sql server with scvmm 2012 r2

    Hello,
    How to deploy SQL Server with scvmm such a way that  I get a VM with OS+ SQL installed.
    Is there way that i will get installed SQL with all feature to create new VM.
    I have followed the steps as given links    http://blog.islamgomaa.com/?p=236 
    I worked but when i have create a VM , still I need to installed SQL management Stdio  manually for create DBs.

    MSFT has also built SQL Server Service Templates that will do this for you - you download the template, add your OS disk, add the SQL install media and go.
    Here is how to get the MSFT built templates:
    http://blogs.technet.com/b/scvmm/archive/2013/11/04/using-the-service-models-web-platform-installer-gallery.aspx
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

  • Deploy SQL Management Studio 2012 through SCCM

    Hello,
    Has anyone successfully deployed SQL Management Studio 2012 with SCCM?
    A couple of specific questions:
    - Which folder from the SQL Media is required to ensure that only Management Studio deploys (we would like to limit the size of the deployment Package)?
    - What command line options do we need to use to install the Advanced version of Management Studio with all of the Tools and Books Online.  I have found the following but there is not a clear distinction about what is required and what is optional:
    http://msdn.microsoft.com/en-us/library/ms144259.aspx
    - Can someone confirm the following command line options for machine that has 2008 R2 Management Studio on it?
    Setup.exe /q /ACTION=upgrade /IACCEPTSQLSERVERLICENSETERMS /FEATURES=Tools
    - Can someone confirm the following command line options for a new installation of 2012 Management Studio?
    Setup.exe /q /ACTION=Install /IACCEPTSQLSERVERLICENSETERMS /FEATURES=Tools
    - Do I need to use /PID for the product key if I am only installing Management Studio?
    Thank you,
    Matt

    Hello,
    I had a couple of failed upgrades involving SSMS while testing on one of my laptops with a Hyper-V machine. I couldn’t blog about it because I couldn’t find the reason myself. I ended uninstalling the tools on SQL Server 2008 R2, and then proceeding with the
    upgrade. Both issues occurred with RC0. I used Hyper-V snapshots to create restore points.
    Besides that I had some issues enabling .NET Framework on Windos Server 8 using the GUI. However, enabling .NET Framework from the command prompt works perfectly.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Error while Deploying Monitoring Server Reports!

    Hi,
    Trying to install the monitoring role with reporting services but must have missed one or several steps! :)
    Have 1 standard edition server and 1 server running Lync monitoring and SQL (that I installed myself, hopefully correct)
    Have installed SQL with instance LYNCSQL\LYNSQL (also checked the reporting services feature)
    Have intalled the Standard Edition server
    Have installed the Monitoring role
    Now I want to "Deploy Monitoring Server Reports" from the Lync Server Deployment Wizard.
    Specifying Monitoringserver with FQDN (the same server as the acctual SQL server)
    Specifying LYNCSQL\LYNCSQL as the Instance\InstanceID
    Specifying the systemaccount that I added during the SQL server installation
    Don't specifying any usergroup
    Receiving the following error:
    Could not get objects from namespace root\Microsoft\SqlServer\ReportServer. The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)Cannot get the ReportServerWebService
    URL. Verify that Reporting Services is deployed and configured properly on the target SQL instance:"LYNCSQL\LYNCSQL", and that WMI is included on the exception list of firewall setting on the server that is running Reporting Services.Invalid parameter
    Windows Firewall is Off!
    SQL Server 2008 x64 SP2
    When looking in the Lync Server Console I see green status of Standard Edition and the Monitoring Server, but from my LYNCSQL\LYNCSQL i have status of N/A.
    Where to start? :)
    Update:
    Logged on to the Reporting services configuration manager and here are the settings:
    Use Built in Account: Local System -> correct or should it be sys.lyncsql as I mentioned before?
    Virtual Directory: ReportServer_LYNCSQL
    URL:  http://servername:80/ReportServer_LYNCSQL
    SSL: Not Selected

    Hi,
    Firstly, you need make sure Web Service URL and Report Manager URL could be opened in both Lync FE and SQL server.
    If prompt authentication chanllenges you have to change the built in account with "Network Service".
    Furthermore, make sure firewall is turned off when troubleshooting to rule out ports and connection issue.
    Update let us know.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Hi Ben,
    I have a similar problem where I cant deploy reports. Also, I´m prompted when trying to access /Reports and /ReportsServer using IE on reporting services server.
    What do you mean with change the built in account with "Network Service ?
    Chech my thread:
    http://social.technet.microsoft.com/Forums/en-US/ocsmonitoring/thread/7e213177-9e61-4859-b2a8-301813c4298d
    Best regards, Daniel
    www.twitter.com/danielullmark

  • Issue when trying to deploy Monitoring Server Reports on Deployment Wizard

    Hi all.
    I have to install the Monitoring Server Role on a server that already has the Lync Server 2010 up and running.
    I'm new to Lync Server so my experience with the product is limited, so I need some help with an issue.
    I followed the Deployment Guide and for now I managed to do the following:
    - Installed an SQL Server 2008 Standard with SP1 with SSRS also;
    - Updated the Topology to include a Monitoring Server, and also published the new topology;
    - Installed the new components of the monitoring server.
    I can also refer that the SQL Server Instances and Lync Server Front-End are in the same server h where I'm installing the monitoring server, and there is only one Front End Pool.
    As far as I can tell everything was successfully done, and I couldn't find any errors until now.
    And finally the issue appeared when I wanted to deploy the Monitoring Server Reports to the Reporting Services Server.
    In the deployment Wizard of the Lync Server 2010 the link for that option is disabled, no further information is given.
    I tried to find on the ISO and .exe or .msi files that could deploy the reports, but could not find any.
    I believe it isn't a problem of permissions of the user because i followed the documentation.
    I hope someone can help me find the problem, and if possible a solution for it.
    Best regards.

    Hi,
    From your description above, it is a Lync Server 2010 Enterprise Edition and you deploy Monitoring Server in the same Server with FE Server.
    If it is the case, you may meet unknown issues as you must deploy Monitoring Server on a separate Server. You can only collocate Monitoring Server with Archiving Server.
    Please try to delete the Monitoring Server configuration in Lync Topology and then republish topology, and rerun Step 2. After these, please deploy Monitoring Server with a Separate Server and test if the issue happen again.
    More details:
    https://technet.microsoft.com/en-us/library/gg398102(v=ocs.14).aspx
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • How do I determine in Java if running local or deployed weblogic server

    Using JDeveloper 11.1.1.4.0
    I need to determine in my Java code, if I am running my application locally (JDeveloper/Weblogic) or if the application is running on a deployed Weblogic server. The code will be used to determine where to place files when testing on PC verses where to place files when deployed. For example (c:\temp or /usr2/upload).
    Thanks,
    Troy

    Hi,
    well one way is to identify using weblogic system properties here is the one example to get weblogic managed server name of application running in java http://www.baigzeeshan.com/2011/11/oracle-adf-how-to-get-managed-server.html
    check other properties as well http://docs.oracle.com/cd/E13222_01/wls/docs90/config_scripting/config_WLS.html#1019588
    Zeeshan

  • Deploy MHPTester server to JBoss

    Hi,
    I have been trying to deploy MHPTester server to JBoss for a while but always got failed. Has anyone ever run it successfully before?
    The version of MHPTester server which I am using is 1.0.2; the JBoss is 4.2.1 GA. MHPTester can be compiled well. But when I deployed to JBoss, it showed error messages as following.
    "status: Deployment FAILED reason: Error in ejb-jar.xml for Entity Bean mhptester_server/ResultDBBean: The ejb-name for a CMP2.x Entity must be a valid Java Identifier."
    Prior to that error message, I also found another error thrown by JBoss. It said,
    "Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: ejb-ref ejb/webtest/TestSession found in jboss-web.xml but not in web.xml)"
    Shall I use an old version of JBoss to avoid the mistakes above? I have tried to install 3.0.4, but somehow it couldn't run it on my machine (Windows XP).
    Many thanks for your attention.
    Cheers,
    Charles

    Hi Dejan,
    i think the Information Provided here:
    http://otn.oracle.com/products/jdev/htdocs/readme_9031.html#juan
    should solve your problem.
    Regards,
    Christian

  • Moving SMTP server to Azure with Load balancer

    How to
     move SMTP server to Azure with Load balancer???

    Hi TechM,
    Base on my experience, Windows Azure Platform does not provide out-of-the-box mail server (neither SMTP nor POP3). You could use SendGrid to sent mail. About this issue, I recommend you could refer to
    http://stackoverflow.com/questions/10631585/email-sending-approaches and
    http://blogs.msdn.com/b/patrick_butler_monterde/archive/2010/10/11/sending-e-mail-from-windows-azure-part-1-of-2.aspx
    Hope it helps.
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • WDS Server Service won't start - 'An error occurred trying to start the Windows Deployment Services Server.'

    I'm having issues installing starting the WDS server service on Win 2008 R2,  this is happening on multiple (all 2008 R2) systems on this domain so I'm beginning to think it's either AD or network related, in event viewer I get the following error.
    'An error occurred trying to start the Windows Deployment Services Server.'
    Error Information: 0x0906
    EventID : 257 
    single domain, single forest, 2008 R2 functional level, both system are virtual plugged into same vswitch on a flat network.
    any ideas what might be the issue?  I've never had an issue getting this working on many occasions before today and I've come to many a dead end looking at other articles thus far... 
    With WDS tracing enabled I get the following error information:
    [4304] 09:22:11: ===>Starting logging of module [WDSServer]
    [4304] 09:22:11: [UDPPorts] Policy: 1, Dynamic Port Range: 64001-65000.
    [4304] 09:22:11: [RPC] Using Tcp Port 5040 for Rpc Calls.
    [4304] 09:22:11: [RPC] Client Impersonation Logging=Disabled
    [4304] 09:22:11: [RPC] Host Name: sccm.domain.local
    [4304] 09:22:11: [RPC] NTLM/Kerberos Spn: ldap/sccm.domain.local
    [4304] 09:22:11: [RPC] Initialized
    [3756] 09:22:11: [RPC] Server Started.
    [4304] 09:22:11: [BINLSVC][RPC][Ep={5F4FB9F0-C0E3-41C1-AA00-9A7C690AC3A3}] Registered
    [4304] 09:22:11: [BINLSVC] Provider Initialized.
    [4304] 09:22:11: [WDSDDPS][RPC][Ep={FA0A27E1-C2BA-4B3B-94B2-025E82FFAA6D}] Registered
    [4304] 09:22:11: [WDSDDPS][RPC][Ep={011D24AC-CB3A-4739-A339-5D2E1B5306CE}] Registered
    [4304] 09:22:11: [51][WDSDDPS] [d:\w7rtm\base\ntsetup\opktools\wds\ddp\server\ddpprovider.cpp:196] Expression: , Win32 Error=0x906
    [4304] 09:22:11: [WDSDDPS][RPC][Ep={FA0A27E1-C2BA-4B3B-94B2-025E82FFAA6D}] Closed
    [4304] 09:22:11: [WDSDDPS][RPC][Ep={011D24AC-CB3A-4739-A339-5D2E1B5306CE}] Closed
    [4304] 09:22:11: [d:\w7rtm\base\ntsetup\opktools\wds\wdssrv\server\src\wdsprovider.cpp:144] Expression: , Win32 Error=0x906
    [4304] 09:22:11: [WDSDDPS] Initialization Failed (rc=2310)
    [4304] 09:22:11: [d:\w7rtm\base\ntsetup\opktools\wds\wdssrv\server\src\wdsprovhdl.cpp:172] Expression: , Win32 Error=0x906
    [4304] 09:22:11: [WDSDDPS] Deleted.
    [4304] 09:22:11: [d:\w7rtm\base\ntsetup\opktools\wds\wdssrv\server\src\wdsservice.cpp:178] Expression: , Win32 Error=0x906
    [4304] 09:22:11: [Udp] Listen Shutdown.
    [3756] 09:22:11: [RPC] Server terminated (rc=0)
    [4304] 09:22:11: [RPC] Listen Stopped.
    [4304] 09:22:11: [BINLSVC] Shutting down
    [4304] 09:22:11: [BINLSVC][RPC][Ep={5F4FB9F0-C0E3-41C1-AA00-9A7C690AC3A3}] Closed
    [4304] 09:22:11: [BINLSVC] Deleted.

    It seems I've found out the solution myself,  the issue seems to be caused when DHCP and WDS are on the same server, The installation must identify this during the first installation of WDS but not on subsequent installations, the method to
    get it working again is:
    1.      
    Install WDS Role (using defaults)
    2.      
    Make the following registry change:
    HKLM\SYSTEM\CurrentControlSet\services\WDSServer\Providers\WDSPXE\UseDhcpPorts  =  0
    3.      
    Run the following command line to initialize Windows Deployment Services:
    wdsutil /initialize-server /reminst:D:\RemoteInstall
    4.      
    Run the following command to enable the DHCP port registry setting
    wdsutil /Set-Server /UseDHCPPorts:No /DHCPOption60:Yes

  • Deploy Monitoring server issue

    Hi All,
    When i try to deploy the monitoring server this error message appear all the time
    Cannot access LcsCDR or QoEMetrics on Monitoring back-end database
    But LcsCDR and QoEMetrics are created.
    Do you have encountered this issue, and know how to solve that?
    Thanks

    Hi,ODE AMA,
    So now your question is Monitoring Server Reporting service deployment issue,right?
    Make sure the account you used to deploy Monitoring Server reporting service has the required permission of your Monitoring Database,details you can check Terence Luk's
    blog post.
    Also please make sure the 1433 port is opened on your database server.
    B/R
    Sharon
    Sharon Shen
    TechNet Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.

  • Best Practice/Validation for deploying a Package to Azure

    Before deploying a package to Azure, What kind of best practice/Validation can be done to know the Package compatibility with Azure Enviroment?

    What do you mean by the compatibility of the azure package with the azure environment? what do you want to validate? would be great if you provide bit of a background for your question.
    As far as the deployment best practice is concerned, the usual way is to upload your azure cloud service deployment package and configuration files (*.cspkg and *.cscfg) to the blob container first and upload it to the cloud service by referring from uploaded
    container. This will not only give you flexibility to keep different versions of your deployments which you can use to roll back entire service but also the process of the deployment will be comparatively faster than that of deploying from VS or by uploading
    manually from file system.
    You can refer link - http://azure.microsoft.com/en-in/documentation/articles/cloud-services-how-to-create-deploy/#deploy
    Bhushan | Blog |
    LinkedIn | Twitter

  • Error  in XML file while deploying in server

    Hi friends,
    I am Venkataramana . I am doing one small structs application with Validation . as usual in XML file i wrote validations but when i am deploying in server it is showing error as
    SEVERE: Parse Error at line 2 column 17: Document is invalid: no grammar found.
    org.xml.sax.SAXParseException: Document is invalid: no grammar found.
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
    and
    Jan 11, 2010 11:57:53 PM org.apache.commons.digester.Digester error
    SEVERE: Parse Error at line 2 column 17: Document root element "form-validation", must match DOCTYPE root "null".
    org.xml.sax.SAXParseException: Document root element "form-validation", must match DOCTYPE root "null".
    Kindly find the validation.xml file for your reference.
    <!DOCTYPE form-validation PUBLIC
    "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
    "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
    <form-validation>
    <formset>
    <form name="regFormForm">
    <field property="username"
    depends="required">
    <arg0 key="uname"/>
    </field>
    <field property="password"
    depends="required">
    <arg0 key="password"/>
    </field>
    </form>
    </formset>
    </form-validation>
    Please can any one help on this?

    I think your dtd entry - "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd" is not compatible with your validation.jar file. If you have recently downloaded the these struts jar files then make sure this entry is matched with what they have provided in examples. Or download new set of jar files and copy the same doc-type tag as they have given in examples.

Maybe you are looking for

  • Can no longer download without saving? AKA: C\Windows\Prefetch?

    Hi, I'm not sure what happened, but the downloads options on here are screwy. A minute ago I went to the plugin manager site and saw I needed to update Flash and Shockwave. I went to do the Flash one and it went fine and everything, but out of curios

  • System is not calcutiong tax depreciation in the asset master.

    Hi SAP Team, As per configuration, SAP system is not calculating depreciation in the area 11 tax depreciation in the asset master,however it is not calcuating tax depreciation at the group asset level. In our system we linked group asset in the area

  • NSP (nw04sSP9) installed OK, but SAPgui fails on start

    Hi I installed NSP Ok and it starts OK in sap console. When I login using SAPGUi I get the following error even before sap login screen. Runtime Error: DBIF_RSQL_INVALID_REQUEST Error Analysis: an invalid request was made to the SAP database interfac

  • Applet Running on J2ee Engine

    I'm trying to implement an applet in a jsp running on the was java engine.  The JspDynPage appliation is running the applet, but the applet itself is bombing.  It gives the fullowing error in the console. java.lang.ClassFormatError: Incompatible magi

  • Query Builder on BOXI r2 launchpad

    Is there any documentation available for the Query Builder on BOXIr2?