I am interested in locating the COM directory where the replications tools such as snapshot.exe are located. It appears that this directory is directly related to the default compatibility level of the SQL installation. I need to generate code that
will dynamically locate this directory such that the program will work with all SQL installations (2005, 2008, 2012, 2014) WITHOUT changes. Is there a method or mechanism that willreliably report the location or the default compatibility level of the SQL installation?
↧