Hello,
I'd like to reference a user account on a Windows machine, without knowing the host name of the machine.
Specifically, I am assigning permissions on a SQL server database, in a sql script, that will give permissions to a local user account on that machine.
For example: CREATE USER [UserA] FOR LOGIN [MACHINENAME\UserA] WITH DEFAULT_SCHEMA=[dbo]
This script is invoked as part of an installation process, so I don't know the 'MACHINENAME' ahead of time.
Is there a special token meaning 'the local machine' that I can use? Something like: '.\UserA', or 'localhost\UserA'?
Thanks!!