sometime i need to get my referenced assembly so i can determine which property should i use (related to SAP Business One)
i used this code to determine which SQL Version should i use
see u
i used this code to determine which SQL Version should i use
Assembly EntryAssembly;
EntryAssembly = Assembly.GetEntryAssembly();
foreach (AssemblyName Name in EntryAssembly.GetReferencedAssemblies())
{
if (Name.Name.ToString() == "Interop.SAPbobsCOM")
{
switch (Name.Version.ToString())
{
case "8.8.0.0":
myCompany.DbServerType = BoDataServerTypes.dst_MSSQL2008;
break;
default:
myCompany.DbServerType = BoDataServerTypes.dst_MSSQL;
break;
}
}
}
see u
Comments