Get SQL & Exchange Versions from a Console Application


hey all,

 

i'm looking @ trying exchange version , sql version using console applicatio , have output console. ideas??

you can version of ms sql using

sqlconnection sqlconnection = new sqlconnection(connectionstring);  microsoft.sqlserver.management.smo.server server = 
new microsoft.sqlserver.management.smo.server(new microsoft.sqlserver.management.common.serverconnection(sqlconnection)); console.writeline("sql server {0}", server.information.version.major.tostring());

or can use query

 

select @@version

and know version of exchaneg server in computer.

you have read registery key in location
registry keys in following  registery location,
hkey_local_machine\software\microsoft\windows\currentversion\uninstall\micro
soft exchange

need read registry keys , find out version
of exchange server installed.
http://msdn.microsoft.com/en-us/libr....registry.aspx

 



Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'