Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
jjmoss1234
Starting Member
11 Posts |
Posted - 2009-05-28 : 09:52:09
|
| Pleasee can someone help me?Is there a piece of syntax in SQL 2005 that tells me the operating system I am using? ie.. WIN XP SP2 etc..... ?Many thanksJohn |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-05-28 : 09:58:17
|
SELECT @@VERSION E 12°55'05.63"N 56°04'39.26" |
 |
|
|
jjmoss1234
Starting Member
11 Posts |
Posted - 2009-05-28 : 10:04:12
|
| Thankyou for your reply, but I was after the operating sytem of the machine that the database is on rather than the version of SQL server.. ie Windows server 2003, windows VISTA etc... |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2009-05-28 : 10:06:34
|
[code]print @@versionMicrosoft SQL Server 2005 - 9.00.1399.06 (Intel X86) Oct 14 2005 00:33:37 Copyright (c) 1988-2005 Microsoft Corporation Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 1)[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-05-28 : 11:02:27
|
Or you mean the operating system for the client application, not the server? E 12°55'05.63"N 56°04'39.26" |
 |
|
|
jjmoss1234
Starting Member
11 Posts |
Posted - 2009-05-28 : 11:38:01
|
| Thankyou very much... No I meant the server.. I just wondered if there was a way to print the more common name such as windows server 2003 SP2, rather than Windows NT 5.2 (Build 3790: Service Pack 1) |
 |
|
|
|
|
|