[In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/pabloperalta] How to get the sql server database of an organization? - Pablo Peralta's Blog
Thursday, February 16, 2012 11:41 AM pablop

How to get the sql server database of an organization?

I want to share a quick tip that learned today.

 

Within Deployment Manager, when we double click an Organization we have this data available to see (or edit if organization is disabled):

image

What happens if we want to know exactly which SQL Server Database corresponds to each organization? Normally their names matches but sometimes (as happened today to me) it doesn’t ;).

So, the quick tip is querying Organization table from MSCRM_CONFIG database in order to find out this information.

 

By running this query within MSCRM_CONFIG database we should be able to easily identify each organization:

SELECT [DatabaseName]
      ,[FriendlyName]
      ,[SqlServerName]
      ,[SrsUrl]
      ,[State]
      ,[UniqueName]
      ,[UrlName]
      ,[IsDeleted]
  FROM [MSCRM_CONFIG].[dbo].[Organization]

 

(result)

image

 

Hope you find this helpful,

PP [twitter: @pabloperalta]

Filed under: ,

Comments

# How to get the sql server database of an organization? - Pablo Peralta's Blog

Pingback from  How to get the sql server database of an organization? - Pablo Peralta's Blog

# HOW TO GET THE SQL SERVER DATABASE OF AN ORGANIZATION?

Monday, February 20, 2012 4:30 PM by MVP Factor

Nuestro estimado MVP Pablo Peralta nos comparte el artículo: HOW TO GET THE SQL SERVER DATABASE OF AN

# re: How to get the sql server database of an organization?

Friday, April 20, 2012 7:30 AM by Vladislav Osmanov

Also you can try this page: http://[crmserver]/[orgname]/home/home_debug.aspx

# re: How to get the sql server database of an organization?

Friday, April 20, 2012 8:16 AM by pablop

Great contribution Vladislav!.

Thank you.

PP

Leave a Comment

(required) 
(required) 
(optional)
(required)