CRM deployment Manager , SQL Server is unavailable - dynamics-crm

I am facing the issue with deployment manager when trying to create new organisation entry. It is giving error " SQL server is unavailable. Below is the brief of my problem:
Earlier application & CRM database was on same server & it was working perfectly fine.
But when we migrated the Database on another server, application was able to connect to database.
but we are not able to add new entry in organiser. When we are trying this it was saying that "SQL Server is unavailable." ( But SQL Server is running fine.)
Note: Firewall is turned off
There is no network issue
SQL Services are running fine
Any help on this would be appreciable.
Thanks in advance
Regards,
Yashwant Vishwakarma | www.sqlocean.com

It could be worth checking this TechNet article on rehoming / reconfiguring a Dynamics CRM deployment.
I would like to highlight steps 4 through 7 which takes you through updating the registry key of the CRM Server that holds the CRM database connection and updating the CRM organization's database from the Deployment Manager.
Including pertinent parts of the Technet article below with a few minor edits to reflect that this can work not only for SQL Server cluster instances, but also if the databases were simply moved to a new SQL Server and/or SQL Server instance:
On the computer that is running the Microsoft Dynamics CRM web application, click Start, click Run, type regedit in the Open box, and then click OK.
Locate the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM
Right-click configdb, and then click Modify.
In the Value data box, change the data source to the name of the new virtual SQL Server (or current SQL Server databases were moved to), and then click OK. For example, the string value in the Value data box should resemble the following:
Data Source=NewSQLServer;Initial Catalog=MSCRM_CONFIG;Integrated Security=SSPI
On the computer that is running the Microsoft Dynamics CRM Server web application, start Deployment Manager. To do this, click Start, point to All Programs, point to Microsoft Dynamics CRM, and then click Deployment Manager.
Expand the Deployment Manager node, and then click Organizations.
If the organization is not already disabled, right-click the organization, and then click Disable.
WarningWarning
When you disable an organization, users will no longer be able to access Microsoft Dynamics CRM for that organization.
Click Yes to disable the organization.
In the list of organizations, right-click the organization, and then click Edit Organization.
In the Edit Organization Wizard, in the SQL Server box, type the virtual SQL Server name for the SQL Server cluster that you created earlier, and then click Next. (NOTE: If not using a SQL Server cluster, just type the SQL Server name or SQL Server name and instance name here).
On the System Requirements page, after a successful diagnostics check, click Next, and then click Apply.
Click Finish.
Enable the organization. To do this, right-click the organization, and then click Enable.
Reset the IIS services on the computer that is running IIS where the Microsoft Dynamics CRM Server web application is installed. To do this, click Start, click Run, type iisreset in the Open box, and then click OK.

Related

Active Directory Universal with MFA support not available when trying to connect from Visual Studio

I am using an Azure SQL for my application and from management studio I am connecting to the DB using Active Directory - Universal with MFA option from the dropdown as the authentication method.
That connects the DB without any trouble
But that method is not available when trying to connect to the DB from Visual Studio connection manager
Here is the screen grab
So how can I connect to my Azure DB with MFA from visual studio
This is possible in Visual Studio 2019, but is buried in the advanced connection options.
On the connection properties screen, fill out the information per your setup. You must leave the password blank (arrow 2) or you will get an error message.
Leave/Set the Authentication as “SQL Server Authentication” as step 4 will change this drop down back if it’s not already selected.
Next, click advanced and in the Security section, for the Authentication property, specify ActiveDirectoryInteractive (arrow 4).
Click Ok.
Once you test the connection or click ok to take the settings, you will get prompted with the interactive login from Microsoft and will be challenged for your password and MFA.
SSMS and SqlPackage.exe are the only tools currently enabled for MFA through Active Directory Universal Authentication.
Visual studio doesn't support it.
Ref: Universal Authentication limitations

Publish Web and View in Firefox are using two different Databases

I don't really know how to title this question.
I have an MVC project web site.
I wanted the login system to have roles, so I implemented that. I noticed that when I published my website, the localdb Entity framework DB with the login users weren't working.
So I edited the DefaultAppPool settings to allow the localdb to be used when I publish web.
I thought everything was working, I could log in. Great!
Though, I noticed I could not log into my admin account. Only when I used IIS express, the test debug (View in Firefox) option I could.
I registered a new account in the "View in Firefox", checked my SQL Server Object explorer for the tables, view data, and saw the new account there.
I publish web, create an account; it does not appear there, and I cannot log into that account.
I have two users I can log onto (created when I first started the MVC5 project), but their information is found nowhere in the SQL Server Object Explorer. I have no idea what table or database my website is using when I publish, but it is not the localdb which is created with new MVC projects like I wish it was.
How do I fix this problem. I have no idea what to google.
TL;DR
I want to use my localdb when I publish my site to IIS when I click the 'Web Publish' button in Visual Studio 2015. Instead it's using an invisible database I cannot find.

Microsoft dynamics CRM 2013 missing New, Delete, Copy a Link, Run Report tool bar

I recently restored my production database to my test area, but when users login they are unable to see the tabs shown in the screen shot below. I am able to view them on the server but on any other machine i am also unable to view. I have full rights in the organisation.
Missing tab in ms dynamics crm 2013
This is what i can view on the server
Contains the tabs in the server
Also noted is i can not open an email or case by clicking on the title, i have done my research online but i have not seen anything of this sort.
To resolve this issue, delete the Microsoft Internet Explorer cache. To do this, follow these steps:
Exit the Microsoft CRM Web client and the Microsoft Dynamics CRM
client for Outlook.
Start Microsoft Internet Explorer.
Click Tools, and then click Internet Options.
Click Delete Cookies, and then click OK.
Click Delete Files, and then click OK.

New database in SQL Server 2008 does not show up in dropdown

I'm new to using Visual Studio and SQL Server.
My problem is this:
I have created a database in SQL Server Management Studio, then I'd like to connect it my app in Visual Studio. I right click in the Server Explorer and click on Add connection. Here I can find through dropdown list my server, but when selecting the database under "Connect to a database" it doesn't find my new database in the dropdown list...
Can you help me please? Thank you a lot :-)
check whether it is windows authentication or server authentication in sql server 2008 where you have created the database. If it is server authentication then check whether you are entering correct username and password.

Visual Studio 2010 cannot find SQL Server 2008 R2

I installed SQL Server 2008 R2 and I already have Visual Studio 2010.
When I try to connect to the SQL Server there exists no server on my Add Connection while my database engine works properly.
Why is that so?
As far as I can tell, in Server Explorer, you need to click the "Connect to Database" toolbar icon (or right-click Data Connections and choose "Add Connection...").
From the Data source list, choose Microsoft SQL Server and then click Continue. The Add Connection dialog box displays so you can enter your server name (machinename\instancename). You can choose between Windows or SQL Server Authentication (depends on how you set it up, but Windows Authentication should work for a local installation).
Once you have entered a correct server name and credentials you'll get a list of databases to choose. Select one if you wish and click OK. That should get your server added to the list for Visual Studio 2010.
The issue is that is VS 2010, you need to type in your localhost instead of choosing the connection from the drop-down list. I hope this issue is resolved in the next releases.
I believe if from VB 2010 you go to Project >> Add New Item and choose the appropiate path for your server it should work.
You may also want to try Data >> Add New Data Source

Resources