Hi
My intension is to find the "Microsoft.SqlServer.Management.Sdk.Sfc.dll" is present in the system or not. And generally this will be came up with sqlserver2008 installation usually it is available in
C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies
or can u provide me atleast a way to find whther SQLSERVER2008 installed or not using c++
I am using LoadLibrary("Microsoft.SqlServer.Management.Sdk.Sfc.dll");
But it shows NULL even though it is available.
HINSTANCE hDLL = LoadLibrary(TEXT("Microsoft.SqlServer.Management.Sdk.Sfc.dll"));
if (hDLL == NULL)
{
printf("Could not load exe.0x%X\n",GetLastError());
return;
}
else
printf("DLL found\n");
it displays couldnot load exe 0x7E is the error code eventhough i given exct path.