def METHOD_NAME(self):
    if not conf.tmpPath and Backend.isDbms(DBMS.MSSQL):
        debugMsg = "identifying Microsoft SQL Server error log directory "
        debugMsg += "that sqlmap will use to store temporary files with "
        debugMsg += "commands' output"
        logger.debug(debugMsg)
        _ = unArrayizeValue(inject.getValue("SELECT SERVERPROPERTY('ErrorLogFileName')", safeCharEncode=False))
        if _:
            conf.tmpPath = ntpath.dirname(_)
    if not conf.tmpPath:
        if Backend.isOs(OS.WINDOWS):
            if conf.direct:
                conf.tmpPath = "%TEMP%"
            else:
                self.checkDbmsOs(detailed=True)
                if Backend.getOsVersion() in ("2000", "NT"):
                    conf.tmpPath = "C:/WINNT/Temp"
                elif Backend.isOs("XP"):
                    conf.tmpPath = "C:/Documents and Settings/All Users/Application Data/Temp"
                else:
                    conf.tmpPath = "C:/Windows/Temp"
        else:
            conf.tmpPath = "/tmp"
    if re.search(r"\A[\w]:[\/\\]+", conf.tmpPath, re.I):
        Backend.setOs(OS.WINDOWS)
    conf.tmpPath = normalizePath(conf.tmpPath)
    conf.tmpPath = ntToPosixSlashes(conf.tmpPath)
    singleTimeDebugMessage("going to use '%s' as temporary files directory" % conf.tmpPath)
    hashDBWrite(HASHDB_KEYS.CONF_TMP_PATH, conf.tmpPath)
    return conf.tmpPath