microsoft/mssql-scripter

unable to export users with domain on MacOS

TomPett opened this issue · 0 comments

Exporting domain-users on MacOS results in broken file.

user is exported as DOMAIN\USERNAME.

On windows the "\" in the username is replaced with a space, but on Mac it's not replaced which leads to an apparent error where the file is either empty or broken.

Results:
Windows: DOMAIN USER.User.sql - Works and file has data!
Mac: DOMAIN\USER.user.sql - corrupted or empty file.

Is there an existing workaround for this?

The executing command is:
mssql-scripter -U [user] -P [password] -S [server] -d [database] --file-per-object --object-permission --exclude-headers --display-progress --file-path [filepath]