I've been told that executing the following T-SQL script in C# will create a new login (Windows based) to SQL Server.
So how do I get taht to work?
I have the following questions.
1. Where do I put that code?
2. Is "DomainName" the same as my machine name?
3. Is "loginName" the new login name that I want to create?
Thanks in advance.
CREATE LOGIN [<domainName>\<loginName>] FROM WINDOWS;