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

SQL Server 2008 - High Memory Usage

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

Problem In Configuring Biztalk 2009 In Creating A ReceivePort.When I Try To Create A Receive POrt I Got This Error