Deting SQL Server Version

  • Thread starter Thread starter Nitin Nikam
  • Start date Start date
N

Nitin Nikam

How Can I detect version of SQL Server running on the web server using
ASP.Net (C#)

I am working on a installer and want to check machine configuration before
installing the web based script.

Thanks In advance,
NN
 
How Can I detect version of SQL Server running on the web server using
ASP.Net (C#)

I am working on a installer and want to check machine configuration before
installing the web based script.

Thanks In advance,
NN

You can create a SqlCommand object and execute the following query

Select @@version

This will give you information about the installed SQL Server version
 
Back
Top