Re: How to detect SQLServer 2005 ?
- From: Arne Vajhøj <arne@xxxxxxxxxx>
- Date: Sun, 16 Mar 2008 21:56:05 -0400
GuangXiN wrote:
I miss some code
public static bool ExistSqlServerService() {
bool flag = false;
ServiceController[] services = ServiceController.GetServices();
for(int i = 0; i < services.Length; i++) {
if(services[i].DisplayName.ToString().Equals("MSSQLSERVER") {
flag = true;
break;
}
}
return flag;
}
The service can have different names.
Arne
.
- References:
- How to detect SQLServer 2005 ?
- From: ad
- Re: How to detect SQLServer 2005 ?
- From: Duy Lam
- How to detect SQLServer 2005 ?
- Prev by Date: Re: Beginner with Questions re: WPF, WCF, LINQ
- Next by Date: Re: Windows Mobile - C# Express possible?
- Previous by thread: Re: How to detect SQLServer 2005 ?
- Next by thread: Re: How to detect SQLServer 2005 ?
- Index(es):