sql server ce - Sql Compact Installation -


Is there any way through which we can find out the program that SQL compact is installed or not ... actually I It is to know if the compact version is installed in PC and that is why I can include or exclude SQL Compact DLL ... because there are separate processes in my applications which can use the SDF file, which can be accessedLlngn will cause an error if those include Dell and compact installed ...

Any ideas?

I think the registry check is very reliable.

command

reg query "HKLM \ software \ Microsoft \ Microsoft SQL Server Compact Edition \ v3.5"

Output < / H2>
 HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Microsoft SQL Server Compact Edition \ v3.5 InstallDir REG_SZ C: \ Program Files \ Microsoft SQL Server Compact Edition \ v3.5 \ version REG_SZ 3.5.5692.0 Resident DIR REG_SZ C: \ Program Files \ Microsoft SQL Server Compact Edition \ v3.5 \ ENU HKEY_LOCAL_MACHINE SOFTWARE \ Microsoft \ Microsoft \ Microsoft \ SQL Server Compact Edition \ v3.5 \ GAC 

You did not mention being used programming language, but if you want it to .NET, use the API.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -