I need to determine the version of SQL Server (2000, 2005 or 2008 in this particular case) that a connection string connects a C# console application (.NET 2.0). Can anyone
Try
Select @@version
http://msdn.microsoft.com/en-us/library/ms177512(SQL.90).aspx