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

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

How to Share webservice object to all user