This will be very stressful for your dog!! Can't you take her somewhere for the day? better than locking her in where she knows she isn't supposed to "go"
and possibly having an accident.