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
 
With a SQL statement:
SELECT @@VERSION;

Gabriel Lozano-Morán
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top