Parth48
asked on
how can i check whether sql server 2008 is installed or not in C# .net window application ??
i am creating C#.net window application , in my application i want to check whether sql server 2008 is installed or not (when my application start) ??
and if sql server 2008 is not installed in my system then it will give appropriate message , but how can i do this ?
and if sql server 2008 is not installed in my system then it will give appropriate message , but how can i do this ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hello:
You have to choices from my point of view.
One is searching in windows registry. HKEY_LOCAL_MACHINE\SOFTWAR E\Microsof t\Microsof t SQL Server\100.
Another choice, more complex maybe, is adding a launch condition to your msi installation, in case you have one.
Best regards.
You have to choices from my point of view.
One is searching in windows registry. HKEY_LOCAL_MACHINE\SOFTWAR
Another choice, more complex maybe, is adding a launch condition to your msi installation, in case you have one.
Best regards.
ASKER
hi @rawinnlnx9:-
i got the below error , what can i do ?
"The type 'Microsoft.SqlServer.Manag ement.Comm on.IAltera ble' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.SqlServer.Conne ctionInfo, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd808 0cc91'."
i got the below error , what can i do ?
"The type 'Microsoft.SqlServer.Manag
ASKER
where i can download Microsoft.SqlServer.Manage ment.Commo n dll ??
ASKER